Extract Superclass improvement/bug

Perhaps I'm expecting too much from IDEA but that seems to have worked in the past so I'll try anyway.

I have a class:

I would like to extract the mStuff field and getter to a superclass. Currently, this is what Foo looks like after I use the Extract Superclass refactoring:

Naturally, the first line in the constructor is marked as an error. What I would like IDEA to do (and I was honestly expecting it to do it already) is do the right thing with the constructor and call to super:

Am I smoking crack? Is this too hard to do?


Comment actions Permalink

No, this is not hard to do at all. If only I had enough time to do it... Any way, please file a request to JIRA, and I'll try to make it till 6.0 release.


Please sign in to leave a comment.