Ambiguous method call

I have a constructor defined as:

    public Handler( final Class clazz )


calling it like this:

     new Handler( getClass() );

which calls down to:

    public final native Class<?> getClass();


on Object, gives me this error:

    Ambiguous method call: both 'Object.getClass()' and 'Object.getClass()' match.

I'm seeing similar noise on Object.equals() as well.

Is anyone else seeing this?

FYI this is with 106.491, but I've been seeing it for a few revisions now.
4 comments
Comment actions Permalink

I started seeing this today in IU-111.69 (Ultimate 11.0) for the first time as far as I can recall.

0
Comment actions Permalink

And it went away on upgrade to 11.0.1. Might have just been the re-indexing though.

0
Comment actions Permalink

It's an intermittent bug. It has happened to me in 11.0.1. See and vote for http://youtrack.jetbrains.net/issue/IDEA-79680

0
Comment actions Permalink

PS I spoke too soon, I still have this on 11.1.3.

0

Please sign in to leave a comment.