This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gcj-eclipse-merge-branch] MinGW ecj: Cross-built ecjx?! (was Re: ecj branch)


Marco Trudel writes:
 > Andi Vajda wrote:
 > > 
 > > <snip>
 > > 
 > > Thank you for all the great work in that area, the Java Lucene 
 > > developers are eagerly waiting for Java 1.5 support in gcj so that they 
 > > can allow Java 1.5-requiring code into their source tree.
 > 
 > What exactly do you mean by 1.5-requiring code? Do you mean
 > 1. the parts of the class-library that were introduced by Java 1.5 or
 > 2. the new language features?
 > 
 > As for point 1, I don't think that these classes will be in the new 
 > release (but I might be completely wrong, I have no idea).

Yeah, they will.  There's not much point having one and not the other.

 > If you're talking about the language features and, as you have said 
 > you're using another bytecode compiler than gcj anyway, there's no need 
 > to wait for the new release. Just compile your .java to .class files 
 > with a bytecode compiler that understands these language features. They 
 > will be disappeared in the .class files (backwards compatibility issues, 
 > I guess). I'm doing that for a long time now and these language features 
 > all work:
 > - generics
 > - autoboxing/unboxing
 > - extended for loops
 > - static imports
 > - varargs
 > - enumerations
 > 
 > The only thing I can't test because I don't know how are annotations.

Well, having spent a few weeks implementing them, I can guarantee that
annotations wouldn't have worked before.  They work now, or will do so
when http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30076 gets fixed.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]