Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

jaxb2-sources : Allow compilation under Java 6 #478

Closed
glassfishrobot opened this issue Jan 28, 2008 · 11 comments
Closed

jaxb2-sources : Allow compilation under Java 6 #478

glassfishrobot opened this issue Jan 28, 2008 · 11 comments

Comments

@glassfishrobot
Copy link
Contributor

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
Copy link
Contributor Author

Reported by robertotyley

@glassfishrobot
Copy link
Contributor Author

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

@glassfishrobot
Copy link
Contributor Author

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

@glassfishrobot
Copy link
Contributor Author

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

@glassfishrobot
Copy link
Contributor Author

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

@glassfishrobot
Copy link
Contributor Author

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

@glassfishrobot
Copy link
Contributor Author

File: build.properties.patch
Attached By: leamas

@glassfishrobot
Copy link
Contributor Author

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
Copy link
Contributor Author

snajper said:
This was fixed some time ago already.

@glassfishrobot
Copy link
Contributor Author

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

@glassfishrobot
Copy link
Contributor Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant