Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71923 - sys-libs/db won't compile with sun-jdk 1.5.0
Summary: sys-libs/db won't compile with sun-jdk 1.5.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-21 02:48 UTC by Martin Vysny
Modified: 2004-11-30 11:42 UTC (History)
1 user (show)

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 Martin Vysny 2004-11-21 02:48:36 UTC
When emerging sys-libs/db with USE="java" (I have sun-jdk-1.5.0) javac stops complaining that a variable cannot be named 'enum' because it is a keyword in java 1.5.

Reproducible: Always
Steps to Reproduce:
1. make sure that sun-jdk-1.5.0 is installed and it is being used.
2. USE="java" emerge sys-libs/db

Actual Results:  
javac shows compile errors.


you should add the '-source=1.4' switch to the javac command line, to force
.java source compatibility with java 1.4, where enum was not keyword. Even
better is to use -source=1.3 because this is the default value for all javac
prior 1.5.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-11-21 04:51:12 UTC
which version of sys-libs/db?
Comment 2 Martin Vysny 2004-11-21 05:40:35 UTC
sys-libs/db-4.1.25_p1-r3. I already have it installed, but without java support.
Comment 3 Paul de Vrieze (RETIRED) gentoo-dev 2004-11-30 11:42:49 UTC
I just added a patch in cvs that renames the symbol so it compiles fine with jdk-1.5