Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88359 - dev-java/commons-net 1.2.2-r1 does not compile with JDK 1.5
Summary: dev-java/commons-net 1.2.2-r1 does not compile with JDK 1.5
Status: RESOLVED DUPLICATE of bug 79206
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-08 08:06 UTC by Stephen Cavilia
Modified: 2005-07-17 13:06 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 Stephen Cavilia 2005-04-08 08:06:50 UTC
If Java 1.5 is installed as the default JVM, compilation fails:
    [javac] /var/tmp/portage/commons-net-1.2.2-r1/work/commons-net-1.2.2/src/java/examples/mail.java:51: 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]         Enumeration enum;

The ebuild should patch the ant script to pass -source 1.4 to javac

Reproducible: Always
Steps to Reproduce:
1. Set JDK 1.5 as default
2. emerge =dev-java/commons-net-1.2.2-r1

Actual Results:  
Usingn sub-jdk-1.5.0.02, emerge produces several errors during compile, starting
with

    [javac]
/var/tmp/portage/commons-net-1.2.2-r1/work/commons-net-1.2.2/src/java/examples/mail.java:51:
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]         Enumeration enum;


Expected Results:  
the package should have merged cleanly
Comment 1 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-04-08 09:55:08 UTC

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