Bootstrap javac cannot be compiled using earlier JDK7 versions

Andreas Kohn andreas.kohn at fredhopper.com
Wed Oct 20 12:59:50 UTC 2010


On Wed, 2010-10-20 at 13:51 +0100, Alan Bateman wrote:
> Andreas Kohn wrote:
> > Hi,
> >
> > I wanted to update my local JDK7 build, and stumbled across a problem
> > when building with a JDK7 from ~2010-09-10:
> >
> > build-bootstrap-javac:
> >     [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.
> >
> > Regards,
> > --
> > Andreas
> >
> >   
> Looks like you have ALT_JDK_IMPORT_PATH set to /usr/java/openjdk-current 
> - is that a pre jdk7-b114 JDK by any chance?

Yes.

The exact version is probably not that helpful (note to self: include hg
revision numbers in my local build identifiers :) ), but it is
definitely before b114:

openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-andreask_2010_09_10_13_14-b00)
OpenJDK 64-Bit Server VM (build 20.0-b01, mixed mode)

I always build and install into /usr/java/openjdk-current, and retain
the previous build if something goes wrong in another directory.


Is a compilation using JDK6 using different build instructions than a
JDK7-based build? IOW: did it simply get confused by my build JDK saying
"I'm a java 7"?

Regards,
--
Andreas

-- 
Never attribute to malice that which can be adequately explained by
stupidity.                                        -- Hanlon's Razor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://mail.openjdk.java.net/pipermail/build-dev/attachments/20101020/01cae737/signature.asc>


More information about the build-dev mailing list