javaee / jaxb-v2

Other
211 stars 101 forks source link

jaxb2-sources : Allow compilation under Java 6 #478

Closed glassfishrobot closed 13 years ago

glassfishrobot commented 16 years ago

Currently jaxb2-sources fails to compile under Java 6, failing in the 'txwc' task with this error:

build.xml:179: java.lang.NullPointerException

Building using Java 5 works fine, but obviously it would be cool to have JAXB compile under the current release of the Java platform.

Perhaps more importantly the current requirement for Java 5 should be documented as it's causing user's confusion - see http://forums.java.net/jive/message.jspa?messageID=256237#256237

Instructions at https://jaxb2-sources.dev.java.net/ and in 'HOWTO-build.txt' & 'src-build.readme' should be updated.

best regards, Roberto

Environment

Operating System: All Platform: All

Affected Versions

[2.1.6]

glassfishrobot commented 16 years ago

Reported by robertotyley

glassfishrobot commented 16 years ago

robertotyley said: Created an attachment (id=236) Output of 'ant -v clean dist' with java-1.5.0

glassfishrobot commented 16 years ago

robertotyley said: Created an attachment (id=237) Output of 'ant -v clean dist' with java-6

glassfishrobot commented 16 years ago

leamas said: Created an attachment (id=238) build.properties patch - sets target=1.5 javac option

glassfishrobot commented 16 years ago

robertotyley said: Unfortunately the build.properties fix doesn't work for me - this is with JAXB CVS HEAD (i.e JAXB 2.1.6ish), Java 6, Apache Ant v1.7.0 on Ubuntu Gutsy Gibbon.

The patch is against a different version of the build.properties in CVS head, so I manually added 'ant.build.javac.target=1.5' to build.properties and src-build.properties, but the build still failed with the "build.xml:179: java.lang.NullPointerException" error.

Just checking leamas, did you do an 'ant clean' before testing the target=1.5 fix?

glassfishrobot commented 13 years ago

snajper said: This was fixed some time ago already.

glassfishrobot commented 16 years ago

File: build.properties.patch Attached By: leamas

glassfishrobot commented 16 years ago

File: JAXB-clean-dist.Java5.txt Attached By: robertotyley

glassfishrobot commented 16 years ago

File: JAXB-clean-dist.Java6.txt Attached By: robertotyley

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAXB-478

glassfishrobot commented 13 years ago

Marked as fixed on Thursday, April 14th 2011, 8:24:45 pm