Bootstrap javac cannot be compiled using earlier JDK7 versions
Alan.Bateman at oracle.com
Wed Oct 20 12:51:00 UTC 2010
Andreas Kohn wrote:
> I wanted to update my local JDK7 build, and stumbled across a problem
> when building with a JDK7 from ~2010-09-10:
> [javac] Compiling 78 source files to /local/andreask-nonbackup/jdk7/build/linux-amd64/langtools/build/bootstrap/classes
> [javac] /local/andreask-nonbackup/jdk7/langtools/src/share/classes/com/sun/tools/javac/nio/JavacPathFileManager.java:372: method does not override or implement a method from a supertype
> [javac] @Override
> [javac] ^
> [javac] 1 error
> The full output up to that point is attached. This was a completely fresh fclone of the jdk7
> forest (e8ebdf41b9c0) to rule out any local modifications.
> Is this error expected? I just commented the @Override so I could build. I'm a bit wondering how
> this bootstrap can work with a JDK6, but I didn't try that yet.
Looks like you have ALT_JDK_IMPORT_PATH set to /usr/java/openjdk-current
- is that a pre jdk7-b114 JDK by any chance?
More information about the build-dev