Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132918 - dev-java/commons-pool-1.2 does not compile with jdk 1.5
Summary: dev-java/commons-pool-1.2 does not compile with jdk 1.5
Status: RESOLVED DUPLICATE of bug 79206
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-10 09:35 UTC by wolfhead
Modified: 2006-05-10 11:47 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wolfhead 2006-05-10 09:35:26 UTC
dev-java/commons-pool-1.2 uses enum as variable. as it is an identifier for java 1.5+ it aborts compilation.
adding source="1.4" to target compile in the build.xml fixes this.
it compiles right on amd64 afterwards

this way it works:
  <target name="compile" depends="init" description="compiles source files">
      <mkdir dir="${build.classes.dir}"/>
      <javac destdir="${build.classes.dir}"
             srcdir="${src.java.dir}"
             classpath="${classpath}"
             debug="${javac.debug}"
             deprecation="${javac.deprecation}"
             optimize="${javac.optimize}"
		source="1.4"/>
   </target>
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-10 11:47:40 UTC

*** This bug has been marked as a duplicate of 79206 ***