Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 125091 - src build instructions say JDK 1.4 but requires 1.5?
Summary: src build instructions say JDK 1.4 but requires 1.5?
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Sonia Dimitrov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 125086 (view as bug list)
Depends on:
Blocks: 170544
  Show dependency tree
 
Reported: 2006-01-24 17:59 EST by Doug Felt (ICU4J) CLA
Modified: 2007-02-07 23:25 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Felt (ICU4J) CLA 2006-01-24 17:59:09 EST
When building I20060124-1115 src builds, I encounter code that uses generics.  It seems then that you'd need a 1.5 compiler to bootstrap with.  I'm encountering other problems, so I tried substuting a 1.5 JVM as the bootstrap, but it didn't fix them.  I think the compiler is receiving a -source 1.4 directive.

http://download.eclipse.org/eclipse/downloads/drops/I20060124-1115/srcIncludedBuildInstructions.html

Here is the tail of the compiler errors I get:

    [javac] 1576. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptConfig.java
    [javac]  (at line 377)
    [javac]     Map<String, String> options = new HashMap<String, String>();
    [javac]                                       ^^^^^^^
    [javac] The type HashMap is not generic; it cannot be parameterized with arg
uments <String, String>
    [javac] ----------
    [javac] 1577. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptConfig.java
    [javac]  (at line 377)
    [javac]     Map<String, String> options = new HashMap<String, String>();
    [javac]                                               ^^^^^^^^^^^^^^
    [javac] Syntax error, parameterized types are only available if source level
 is 5.0
    [javac] ----------
    [javac] 1578. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptConfig.java
    [javac]  (at line 556)
    [javac]     Boolean.parseBoolean(AptPreferenceConstants.DEFAULT_OPTIONS_MAP.
get(optionName)),
    [javac]                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] AptPreferenceConstants.DEFAULT_OPTIONS_MAP cannot be resolved
    [javac] ----------
    [javac] 1579. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptConfig.java
    [javac]  (at line 640)
    [javac]     AptPreferenceConstants.DEFAULT_OPTIONS_MAP.get(optionName),
    [javac]     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] AptPreferenceConstants.DEFAULT_OPTIONS_MAP cannot be resolved
    [javac] ----------
    [javac] 1580. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptConfig.java
    [javac]  (at line 660)
    [javac]     IScopeContext context = (null != jproject) ?
    [javac]                             new ProjectScope(jproject.getProject())
: new InstanceScope();
    [javac]                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] Incompatible conditional operand types ProjectScope and InstanceScop
e
    [javac] ----------
    [javac] 1581. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptConfig.java
    [javac]  (at line 674)
    [javac]     IScopeContext context = (null != jproject) ?
    [javac]                             new ProjectScope(jproject.getProject())
: new InstanceScope();
    [javac]                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] Incompatible conditional operand types ProjectScope and InstanceScop
e
    [javac] ----------
    [javac] ----------
    [javac] 1582. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptPreferenceConstants.java
    [javac]  (at line 32)
    [javac]     public static Map<String,String> DEFAULT_OPTIONS_MAP;
    [javac]                   ^^^
    [javac] The type Map is not generic; it cannot be parameterized with argumen
ts <String, String>
    [javac] ----------
    [javac] 1583. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptPreferenceConstants.java
    [javac]  (at line 32)
    [javac]     public static Map<String,String> DEFAULT_OPTIONS_MAP;
    [javac]                       ^^^^^^^^^^^^^
    [javac] Syntax error, parameterized types are only available if source level
 is 5.0
    [javac] ----------
    [javac] 1584. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptPreferenceConstants.java
    [javac]  (at line 35)
    [javac]     Map<String,String> options = new HashMap<String,String>();
    [javac]     ^^^
    [javac] The type Map is not generic; it cannot be parameterized with argumen
ts <String, String>
    [javac] ----------
    [javac] 1585. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptPreferenceConstants.java
    [javac]  (at line 35)
    [javac]     Map<String,String> options = new HashMap<String,String>();
    [javac]         ^^^^^^^^^^^^^
    [javac] Syntax error, parameterized types are only available if source level
 is 5.0
    [javac] ----------
    [javac] 1586. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptPreferenceConstants.java
    [javac]  (at line 35)
    [javac]     Map<String,String> options = new HashMap<String,String>();
    [javac]                                      ^^^^^^^
    [javac] The type HashMap is not generic; it cannot be parameterized with arg
uments <String, String>
    [javac] ----------
    [javac] 1587. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptPreferenceConstants.java
    [javac]  (at line 35)
    [javac]     Map<String,String> options = new HashMap<String,String>();
    [javac]                                              ^^^^^^^^^^^^^
    [javac] Syntax error, parameterized types are only available if source level
 is 5.0
    [javac] ----------
    [javac] 1588. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptPreferenceConstants.java
    [javac]  (at line 39)
    [javac]     DEFAULT_OPTIONS_MAP = Collections.unmodifiableMap(options);
    [javac]     ^^^^^^^^^^^^^^^^^^^
    [javac] DEFAULT_OPTIONS_MAP cannot be resolved
    [javac] ----------
    [javac] ----------
    [javac] 1589. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptUtil.java
    [javac]  (at line 40)
    [javac]     List<AnnotationProcessorFactory> factories = loader.getFactories
ForProject( jproj );
    [javac]     ^^^^
    [javac] The type List is not generic; it cannot be parameterized with argume
nts <AnnotationProcessorFactory>
    [javac] ----------
    [javac] 1590. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptUtil.java
    [javac]  (at line 40)
    [javac]     List<AnnotationProcessorFactory> factories = loader.getFactories
ForProject( jproj );
    [javac]          ^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] Syntax error, parameterized types are only available if source level
 is 5.0
    [javac] ----------
    [javac] 1591. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptUtil.java
    [javac]  (at line 40)
    [javac]     List<AnnotationProcessorFactory> factories = loader.getFactories
ForProject( jproj );
    [javac]                                                         ^^^^^^^^^^^^
^^^^^^^^^^
    [javac] The method getFactoriesForProject(IJavaProject) is undefined for the
 type AnnotationProcessorFactoryLoader
    [javac] ----------
    [javac] 1592. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptUtil.java
    [javac]  (at line 42)
    [javac]     for (AnnotationProcessorFactory factory : factories) {
    [javac]          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] Syntax error, 'for each' statements are only available if source lev
el is 5.0
    [javac] ----------
    [javac] 1593. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptUtil.java
    [javac]  (at line 43)
    [javac]     Collection<String> supportedAnnos = factory.supportedAnnotationT
ypes();
    [javac]     ^^^^^^^^^^
    [javac] The type Collection is not generic; it cannot be parameterized with
arguments <String>
    [javac] ----------
    [javac] 1594. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptUtil.java
    [javac]  (at line 43)
    [javac]     Collection<String> supportedAnnos = factory.supportedAnnotationT
ypes();
    [javac]                ^^^^^^
    [javac] Syntax error, parameterized types are only available if source level
 is 5.0
    [javac] ----------
    [javac] 1595. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\AptUtil.java
    [javac]  (at line 44)
    [javac]     for (String anno : supportedAnnos) {
    [javac]          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] Syntax error, 'for each' statements are only available if source lev
el is 5.0
    [javac] ----------
    [javac] ----------
    [javac] 1596. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\CharArrayAnnotationScanner.java
    [javac]  (at line 25)
    [javac]     @Override
    [javac]     ^^^^^^^^^
    [javac] Syntax error, annotations are only available if source level is 5.0
    [javac] ----------
    [javac] ----------
    [javac] 1597. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\InputStreamAnnotationScanner.java
    [javac]  (at line 25)
    [javac]     @Override
    [javac]     ^^^^^^^^^
    [javac] Syntax error, annotations are only available if source level is 5.0
    [javac] ----------
    [javac] ----------
    [javac] 1598. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\ReaderAnnotationScanner.java
    [javac]  (at line 25)
    [javac]     @Override
    [javac]     ^^^^^^^^^
    [javac] Syntax error, annotations are only available if source level is 5.0
    [javac] ----------
    [javac] ----------
    [javac] 1599. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\ScannerUtil.java
    [javac]  (at line 46)
    [javac]     if (SINGLE_BYTE_ENCODINGS.contains(f.getCharset())) {
    [javac]         ^^^^^^^^^^^^^^^^^^^^^
    [javac] SINGLE_BYTE_ENCODINGS cannot be resolved
    [javac] ----------
    [javac] 1600. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\ScannerUtil.java
    [javac]  (at line 136)
    [javac]     private static final Set<String> SINGLE_BYTE_ENCODINGS =
    [javac]                          ^^^
    [javac] The type Set is not generic; it cannot be parameterized with argumen
ts <String>
    [javac] ----------
    [javac] 1601. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\ScannerUtil.java
    [javac]  (at line 136)
    [javac]     private static final Set<String> SINGLE_BYTE_ENCODINGS =
    [javac]                              ^^^^^^
    [javac] Syntax error, parameterized types are only available if source level
 is 5.0
    [javac] ----------
    [javac] 1602. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\ScannerUtil.java
    [javac]  (at line 137)
    [javac]     new HashSet<String>(SINGLE_BYTE_ENCODING_ARRAY.length);
    [javac]         ^^^^^^^
    [javac] The type HashSet is not generic; it cannot be parameterized with arg
uments <String>
    [javac] ----------
    [javac] 1603. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\ScannerUtil.java
    [javac]  (at line 137)
    [javac]     new HashSet<String>(SINGLE_BYTE_ENCODING_ARRAY.length);
    [javac]                 ^^^^^^
    [javac] Syntax error, parameterized types are only available if source level
 is 5.0
    [javac] ----------
    [javac] 1604. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\ScannerUtil.java
    [javac]  (at line 140)
    [javac]     for (String encoding : SINGLE_BYTE_ENCODING_ARRAY) {
    [javac]          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] Syntax error, 'for each' statements are only available if source lev
el is 5.0
    [javac] ----------
    [javac] 1605. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\util\ScannerUtil.java
    [javac]  (at line 141)
    [javac]     SINGLE_BYTE_ENCODINGS.add(encoding);
    [javac]     ^^^^^^^^^^^^^^^^^^^^^
    [javac] SINGLE_BYTE_ENCODINGS cannot be resolved
    [javac] ----------
    [javac] ----------
    [javac] 1606. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\env\Phase.java
    [javac]  (at line 16)
    [javac]     public enum Phase {
    [javac]            ^^^^
    [javac] Syntax error on token "enum", interface expected
    [javac] ----------
    [javac] 1607. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\env\Phase.java
    [javac]  (at line 19)
    [javac]     RECONCILE,
    [javac]              ^
    [javac] Syntax error on token ",", delete this token
    [javac] ----------
    [javac] 1608. ERROR in C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt
.apt.core\src\org\eclipse\jdt\apt\core\env\Phase.java
    [javac]  (at line 25)
    [javac]     OTHER
    [javac]     ^^^^^
    [javac] Syntax error, insert ";" to complete FieldDeclaration
    [javac] ----------
    [javac] 1608 problems (1569 errors, 39 warnings)

BUILD FAILED
C:\doug\eclipse-20060124-1115\build.xml:71: The following error occurred while e
xecuting this line:
C:\doug\eclipse-20060124-1115\build.xml:8: The following error occurred while ex
ecuting this line:
C:\doug\eclipse-20060124-1115\features\org.eclipse.sdk\build.xml:35: The followi
ng error occurred while executing this line:
C:\doug\eclipse-20060124-1115\features\org.eclipse.sdk\build.xml:19: The followi
ng error occurred while executing this line:
C:\doug\eclipse-20060124-1115\features\org.eclipse.jdt\build.xml:99: The followi
ng error occurred while executing this line:
C:\doug\eclipse-20060124-1115\features\org.eclipse.jdt\build.xml:70: The followi
ng error occurred while executing this line:
C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt.apt.core\build.xml:196: Th
e following error occurred while executing this line:
C:\doug\eclipse-20060124-1115\plugins\org.eclipse.jdt.apt.core\build.xml:172: Co
mpile failed; see the compiler error output for details.

Total time: 48 minutes 36 seconds
Comment 1 Iain MacDonnell CLA 2006-02-05 17:42:39 EST
I have the same problem building the latest "integration" build on Solaris x86. I'm using the same method that worked up to (and including) 3.2M4, but it appears that org.eclipse.jdt.apt.core is new, and requires 1.5, where the rest of the product may not be quite ready for it...

    [javac] 4464 problems (2 errors, 4462 warnings)

:P
Comment 2 Iain MacDonnell CLA 2006-02-05 18:07:28 EST
BTW, I was actually able to get a build done with 1.5.0_06, after setting javacSource to 1.5 in the top-level build.xml, and working around around bug #125086.
Comment 3 Sonia Dimitrov CLA 2006-02-06 16:25:45 EST
Updated instructions and fixes to the main build.xml released for builds > 200602061600.  You should only need to reset your JAVA_HOME env variable to a 1.5 java install.
Comment 4 Sonia Dimitrov CLA 2006-02-06 16:32:31 EST
*** Bug 125086 has been marked as a duplicate of this bug. ***
Comment 5 Iain MacDonnell CLA 2006-02-07 23:20:31 EST
Building  with JRE 1.5 still fails unless I set javacSource to 1.5 in the top-level build.xml


    [javac] ----------
    [javac] 1. ERROR in /export/stuff/ws/eclipse/I20060207-1305/plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/FeatureWriter.java
    [javac]  (at line 24)
    [javac]     public class FeatureWriter extends XMLWriter implements IPDEBuildConstants {
    [javac]                  ^^^^^^^^^^^^^
    [javac] The return type is incompatible with Writer.append(char), PrintWriter.append(char)
    [javac] ----------
    [javac] 2. ERROR in /export/stuff/ws/eclipse/I20060207-1305/plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/FeatureWriter.java
    [javac]  (at line 24)
    [javac]     public class FeatureWriter extends XMLWriter implements IPDEBuildConstants {
    [javac]                  ^^^^^^^^^^^^^
    [javac] The return type is incompatible with Writer.append(CharSequence, int, int), PrintWriter.append(CharSequence, int, int)
    [javac] ----------
    [javac] 3. ERROR in /export/stuff/ws/eclipse/I20060207-1305/plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/FeatureWriter.java
    [javac]  (at line 24)
    [javac]     public class FeatureWriter extends XMLWriter implements IPDEBuildConstants {
    [javac]                  ^^^^^^^^^^^^^
    [javac] The return type is incompatible with Writer.append(CharSequence), PrintWriter.append(CharSequence)
    [javac] ----------
Comment 6 Sonia Dimitrov CLA 2006-02-08 09:24:53 EST
Moving to PDE Build component for comment.
Comment 7 Pascal Rapicault CLA 2006-02-08 09:42:41 EST

*** This bug has been marked as a duplicate of 102560 ***
Comment 8 Sonia Dimitrov CLA 2006-02-08 13:39:01 EST
Re-opening.  The source build will need to change to a 1.4 and 1.5 JDK setup such as that used in the platform builds.
Comment 9 Sonia Dimitrov CLA 2006-02-08 16:15:13 EST
Changes released to scripts and instructions for next nightly build.

The setup requires that you have JAVA_HOME set to your 1.4 jdk install and that the -java5home command line arg be set to the root of your 1.5 jdk install, i.e.

build -os win32 -ws win32 -arch x86 -java5home d:\tools\jdk1.5.0_06

Currently testing changes on Windows.  Will also test on Linux and Mac OS X.
Comment 10 Iain MacDonnell CLA 2006-02-09 02:10:19 EST
Couple of errors here - first, you can't do

set java5home=""

in bash (at least) - that seems to change the $1 and the case statement doesn't get the real args anymore. remove the word "set".

Then:

        case "$1" in
                -os) os="$2"; shift;;
                -ws) ws="$2"; shift;;
                -arch) arch="$2";shift;;
                -java5home) bootclasspath="-Djava5.home=$2"; shift;;
                -bc) bootclasspath="-Dbootclasspath=$2"; shift;;

I think you wanted to set java5home there, not bootclasspath.

The those two fixed, the build has started. I'll find out in the morning if it succeeded.

Comment 11 Iain MacDonnell CLA 2006-02-09 08:02:08 EST
(In reply to comment #10)
> The those two fixed, the build has started. I'll find out in the morning if it
> succeeded.

It did.

Comment 12 Sonia Dimitrov CLA 2006-02-09 09:53:12 EST
Thanks for the tip on the errors in the shell script and testing, I've released those changes.
Comment 13 Sonia Dimitrov CLA 2006-02-09 16:35:03 EST
Closing.
Comment 14 Patrick Chuong CLA 2006-08-23 16:58:57 EDT
I am seeing the same error even with the java5home property set. Here is my case. I defined the property in the top level build.xml file. and execute the following line in the top level build.xml file. I am still seeing the same problem.

...
<arg line="-application org.eclipse.ant.core.antRunner 
	-buildfile ${pde.build.scripts}/build.xml 
	-Dbootclasspath=${bootclasspath}
	-Djava5home=${Java_1.5_Location}
	-DbuildDirectory=${buildDirectory} 
	-Dbuilder=${builder} 
	-DbuildLabel=${buildLabel} 
	-DbuildId=${buildId} 
	-DbuildingOSGI=${buildingOSGI} 
	-Dpde.build.scripts=${pde.build.scripts} 
	-DfetchTag=${VOBROOT} 
	-Declipse.build.scripts=${eclipse.build.scripts} 
	-Dconfigs=${configs} 
	-DbranchVersion=${branchVersion} 
	-DarchivePrefix=${archivePrefix} 
	-DcollectingFolder=${collectingFolder}
	-DbaseLocation=${baseLocation}
	"
/>
Comment 15 Iain MacDonnell CLA 2006-12-22 17:34:14 EST
We seem to have regressed here... I can build 3.2.1 OK, but, in the same environment with the same method, 3.3M4 fails with:

    [javac] 1. ERROR in /export/ws/eclipse/3.3M4/plugins/org.eclipse.jdt.compiler.tool/src
/org/eclipse/jdt/internal/compiler/tool/Archive.java
    [javac]  (at line 33)
    [javac]     protected Hashtable<String, ArrayList<String>> packagesCache;
    [javac]                         ^^^^^^^^^^^^^^^^^
    [javac] Syntax error, parameterized types are only available if source level is 5.0
...etc....


JAVA_HOME is /usr/j2se, which is 1.4.2, and I'm building with command:

./build -os solaris -ws gtk -arch x86 -compilelibs -java5home /usr/jdk/instances/jdk1.5.0


Do I need to do something different for 3.3? If so, instructions.html needs to be updated.

Comment 16 Ricky Ng-Adam CLA 2007-01-19 13:49:19 EST
Could we reopen this bug? As noted here by Iain MacDonnell and by me in bug #170544, we are getting the same errors with 3.3M4 as originally reported here under Solaris 10.
Comment 17 Iain MacDonnell CLA 2007-01-22 23:05:01 EST
See bug 163848 - JSE 6.0 is now needed.