google-code-export / nativelibs4java

Automatically exported from code.google.com/p/nativelibs4java
1 stars 1 forks source link

Java version #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The 0.9.6 binaries available at 
http://nativelibs4java.sourceforge.net/maven/com/ were compiled with Java SE 6 
(as per META-INF/MANIFEST.MF):

  Manifest-Version: 1.0
  Build-Jdk: 1.6.0_22
  Built-By: ochafik
  Created-By: Apache Maven
  Archiver-Version: Plexus Archiver
  .
  .
  .

Is it really necessary to use Java SE 6? Wouldn't it compile under Java 5.0 or, 
perhaps, Java 1.4?

The pom.xml files doesn't state clearly which version is necessary. 

To my reckon, such a low-level project won't need Java 6 (which has only some 
enterprise grade additions, like XML serialization, custom annotation 
processors). Java 5.0 is still necessary if using some constructions like 
annotations, foreach, generics, among others.

Original issue reported on code.google.com by rsle...@gmail.com on 18 Feb 2011 at 2:24

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for your report.
It seems that the 1.6 requirement is indeed too broad (look for <source> in 
http://code.google.com/p/nativelibs4java/source/browse/trunk/libraries/Parent/po
m.xml?spec=svn1673&r=1657).
NativeLibs4Java now compiles with Java 1.5 (see revision #1674).

However, Java 1.4 is completely out of the question (heavy use of generics and 
annotations all over the place). Retroweaver might help, but I'm not willing to 
test / support that right now :-)

Cheers
--
zOlive

Original comment by olivier.chafik@gmail.com on 20 Feb 2011 at 11:49