Bugs item #1463741, was opened at 2006-04-03 13:16
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1463741&group_id=44253
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compiler integration
Group: 3: Ugly
Status: Open
Resolution: None
Priority: 5
Submitted By: Dan Smith (dlsmith)
Assigned to: Nobody/Anonymous (nobody)
Summary: Broken 1.4 compiler when running under 5.0
Initial Comment:
See support request [ 1462794 ].
Apparently, when DrJava is run under Java 5.0, the user is allowed to
choose the Java 1.4 version of tools.jar; in doing so, they create an
inconsistent state in which the compiler will run, but will produce "class
file has wrong version" errors pointing to the 5.0 APIs.
Correct behavior would be one of:
- Only allow a Java 5.0 compiler to be defined when running under Java
5.0; only allow a Java 1.4 compiler to be defined when running under Java
1.4. Continue using the "current" APIs as the bootclasspath.
- Allow both a Java 5.0 compiler and a Java 1.4 compiler to be defined,
regardless of the JVM used to run DrJava. Compile with a bootclasspath
corresponding to the tools.jar file.
To avoid confusion, note that there are 4 "classpaths" involved in
compilation:
1) Compilation bootclasspath: The path to search for essential classes
referenced in the sources.
2) Compilation classpath: Additional path to search for classes referenced
in the sources.
3) Compiler JVM bootclasspath: The path to search for essential classes
when running the compiler.
4) Compiler JVM classpath: Additional path to search for classes required
when running the compiler.
Compiler runtime classes are found by searching the path 3:4. Compile-
time classes referenced in the sources are found by searching the path
1:2.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1463741&group_id=44253
|