Rearranger plugin issue with overloaded methods

Hi Dave,

I have a rearranger issue with overloaded methods.
I have class B extends class A.
A implements the Externalizable interface and declares toString, equals, hashcode.
B has its own toString, equals, hashcode methods.

If i rearrange A, the methods will be correctly grouped with comments like : 'canonical methods' and 'implements Externalizable'.

If i rearrange B i would like to have the same grouping... Unfortunately, all methods (canonical and externalization related) will be grouped under 'other methods'. Notice that i've tried to disable 'keep overloaded methods together' and didn't change anything...

PS : i'm using version 4.3.1

Gilles

2 comments

The problem is that the Psi utility to return supermethods no longer finds a supermethod for "equals", "toString" and other canonical methods. It looks like the Psi class hierarchy does not have java.lang.Object at its root. I'll post a question in the openapi forum and hope to get an answer or a fix from someone at JetBrains.

-Dave

0

Hi Dave, thank you for investigating the problem.

I forgot to precise that i'm using Intellij 5.0.2 (not Demetra)...

Gilles

0

Please sign in to leave a comment.