Overloaded inner class marked as error

Does anybody know why inner class B is marked as error in this code:


The code compiles and works as expected, so I assume this is an error of IDEA. But in the following example there's no error:

3 comments
Comment actions Permalink

Yes, this seems to be a bug in our highlighting engine.
Please submit a bug to the tracker.

Friendly,
Eugene

"Martin Fuhrer" <mf@fuhrer.com> wrote in message
news:13677457.1056434404011.JavaMail.jrun@is.intellij.net...

Does anybody know why inner class B is marked as error in this code:

>

> public class A extends BasicTreeUI  {
>     public class B extends BasicTreeUI.KeyHandler { // error
>         // implementation omitted
>     }
> }]]>

>

The code compiles and works as expected, so I assume this is an error of

IDEA.


0
Comment actions Permalink

Ok, I filed a bug: http://www.intellij.net/tracker/idea/viewSCR?publicId=13646

What I don't understand is why the second example isn't also marked as error. It's exactly the same construct than the erroneous one.

0
Comment actions Permalink


I got a similar error while browsing the jdk sources and it had something to
do with the constructors. Going up the hierarchy idea starts complaining
about a default protected constructor not found.

Ah. I see someone has already marked this as duplicate of mine:
http://www.intellij.net/tracker/idea/viewSCR?publicId=13064


0

Please sign in to leave a comment.