Bug 47473 - build failed using jsdk 1.5
Summary: build failed using jsdk 1.5
Status: NEW
Alias: None
Product: Lenya
Classification: Unclassified
Component: Build System (show other bugs)
Version: 2.0.3
Hardware: PC All
: P2 normal
Target Milestone: 2.0.3
Assignee: Lenya Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-05 03:51 UTC by Rudolf Korhummel
Modified: 2009-07-05 07:43 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rudolf Korhummel 2009-07-05 03:51:19 UTC
compile-src:
Compiling 1 source file to /Users/user/privatewebsite/BRANCH_2_0_X/build/lenya/api
/Users/user/privatewebsite/BRANCH_2_0_X/src/java/org/apache/lenya/cms/metadata/Element.java:25: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.5 to use 'enum' as a keyword)
    enum IndexType {
    ^
/Users/user/privatewebsite/BRANCH_2_0_X/src/java/org/apache/lenya/cms/metadata/Element.java:25: = expected
    enum IndexType {
                   ^
1 error
1 warning

BUILD FAILED
/Users/user/privatewebsite/BRANCH_2_0_X/src/targets/webapp-build.xml:149: The following error occurred while executing this line:
/Users/user/privatewebsite/BRANCH_2_0_X/src/targets/webapp-build.xml:28: The following error occurred while executing this line:
/Users/user/privatewebsite/BRANCH_2_0_X/src/targets/compile-build.xml:59: Compile failed; see the compiler error output for details.
Comment 1 Andreas Hartmann 2009-07-05 07:08:51 UTC
Sorry for that. It's quite a PITA that we can't use Java 1.5 yet :(

I'll raise the subject on the mailing list. For the moment I have changed build.properties to use 1.5 as the source version.
Comment 2 Rudolf Korhummel 2009-07-05 07:43:22 UTC
Thanks very much for the quick response !