Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118570 - Velocity fails to build with java 1.5
Summary: Velocity fails to build with java 1.5
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-10 12:23 UTC by Tõnis Märtmaa
Modified: 2006-01-10 12:27 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 Tõnis Märtmaa 2006-01-10 12:23:41 UTC
Velocity uses the word "enum" for variable names, but Java 1.5 has a keyword named "enum", so Velocity will not build.

...
    [javac] /var/tmp/portage/velocity-1.4-r1/work/velocity-1.4/bin/src/org/apache/velocity/util/EnumerationIterator.java:63: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac]         return enum.hasMoreElements();
    [javac]                ^
    [javac] 15 errors

BUILD FAILED
/var/tmp/portage/velocity-1.4-r1/work/velocity-1.4/build/build.xml:189: Compile failed; see the compiler error output for details.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-10 12:27:24 UTC
Java 1.5 is package.masked for a reason...