Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 118570

Summary: Velocity fails to build with java 1.5
Product: Gentoo Linux Reporter: Tõnis Märtmaa <tonis>
Component: [OLD] DevelopmentAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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...