Uhmm, could you please re-formulate why do you think this is a javac problem? I can't see any compilation errors on the log file
Moreover the following code compiles with the latest snapshot of javac

class Test {

final Runnable fileCloserRunnable = new Runnable() {
    public void run() {
        java.security.AccessController.doPrivileged(
           new java.security.PrivilegedAction() {
              public Object run() {return null;}
           });
       }
    };

}

Maurizio

Roman Kennke wrote:
Hi there,

while developing on my Innovators Challenge project, I came about the
following build error:

http://kennke.org/~roman/build-error.txt

I'm not sure what com.sun.tools.javac.sym.CreateSymbols does and why it
fails. The classes all compile fine. A couple of notes:

- This error only occurs with the patches that I developed for the
challenge project, you can find these patches here:

http://kennke.org/~hg/hgwebdir.cgi/openjdk-patches/

Simply do:

cd $(OPENJDK)/jdk/.hg
hg clone http://kennke.org/~hg/hgwebdir.cgi/openjdk-patches patches
cd ..
hg qpush -a

This should fetch and apply all the patches in this patch queue (it
requires the Mercurial patch queue extension though).

- The corresponding code is a nested anonymous inner class like this:

   final Runnable fileCloserRunnable = new Runnable() {
     public void run() {
         java.security.AccessController.doPrivileged(
            new java.security.PrivilegedAction() {
               public Object run() {

etc. Dunno why this is a problem.

- This error seems to be triggered by a recent change in OpenJDK. It did
not fail 3 weeks or so ago.

Any help is appreciated.

If this is not the right list (maybe a javac problem?) please redirect
as appropriate.

Cheers, Roman


Reply via email to