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)


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).
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.


Marco



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