Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267046 - dev-java/xstream-1.3.1 compiles Java annotations with -source 1.4
Summary: dev-java/xstream-1.3.1 compiles Java annotations with -source 1.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High critical with 1 vote (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-22 02:51 UTC by Crístian Viana
Modified: 2009-08-17 12:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
removes java5 use flag from 1.3.1 ebuild (xstream-1.3.1-ebuild.patch,281 bytes, patch)
2009-06-20 10:48 UTC, Ole Langbehn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Crístian Viana 2009-04-22 02:51:24 UTC
the xstream ebuild sets the target Java version to 1.4, but the source code uses annotations, which were introduced in Java 5. so, the package can't be compiled. if the USE flag "java5" is set, then everything works as expected.

GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.13"                                      
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
Comment 1 Ole Langbehn 2009-06-20 10:47:59 UTC
this is getting annoying, since other packages require only java6 or java5 to be set. java5 use flag can be safely dropped, since source requires at least java5. Appending a patch to the ebuild.
Comment 2 Ole Langbehn 2009-06-20 10:48:58 UTC
Created attachment 195265 [details, diff]
removes java5 use flag from 1.3.1 ebuild
Comment 3 Joerg Schaible 2009-06-25 21:09:43 UTC
XStream compiles the Java 5 source with source and target 1.5, while the rest is compiled for target 1.3
Comment 4 Jean-Noël Rivasseau (RETIRED) gentoo-dev 2009-08-17 12:04:33 UTC
Removed java5 USE flag in -r1 bump. Now requires java-1.5 at least.