Content deleted Content added
Kaltenmeyer (talk | contribs) m →External links: sp |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 28:
</ref>
In 2007, a lot of work was done to implement support for Java's two graphical [[
<!--Not sure if this non-development for years contradicts above "AWT is still in development" as that is not a compiler (but would appear in "News"?)-->As of 2015, there were no new developments announced from GCJ and the product was in [[maintenance mode]], with open-source Java toolchain development mostly happening within [[OpenJDK]].<ref>[https://www.phoronix.com/scan.php?page=news_item&px=MTUwOTA GCC Looks To Turn Off Java, Replace With Go Or ADA]</ref> GCJ was removed from the GCC [[Trunk (software)|trunk]] on September 30, 2016.<ref>{{cite web|url=https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=240661|title=[gcc] Revision 240661|date=September 30, 2016|author=Andrew Haley}}</ref><ref>{{Cite web|url=https://tromey.com/blog/?p=911|title=The Deletion of gcj|last=Tromey|first=Tom|date=October 2, 2016|website=The Cliffs of Inanity|access-date=October 3, 2016}}</ref> Announcement of its removal was made with the release of the GCC 7.1, which does not contain it.<ref>{{cite web|url=https://gcc.gnu.org/gcc-7/changes.html|title=GCC 7 Release Series: Changes, New Features, and Fixes|access-date=May 9, 2017}}</ref> GCJ remains part of GCC 6.
Line 50:
<syntaxhighlight lang="java">
public class
▲ public int i;
public Int(int i) {
this.i = i; }
public static Int zero = new Int(0);▼
public int get() {
return i;
}
public void set(int j) {
i = j;
}
}
</syntaxhighlight>
Line 62 ⟶ 73:
<syntaxhighlight lang="cpp">
#include <gcj/cni.h>
#include <
MyInteger* mult(MyInteger& p, int k) {
if (k == 0) {▼
}
▲ if (k == 0)
▲ return Int::zero; // Static member access.
▲ return new Int(p->i * k);
}
</syntaxhighlight>
Line 100 ⟶ 112:
{{DEFAULTSORT:Gnu Compiler For Java}}
[[Category:Free
[[Category:GNU Project software|Java]]
[[Category:Java compilers]]
|