Disappointing result for "Extract Superclass" refactoring on VB class

Today i wanted to extract a base class from an existing class. I added all members of the existing class to the base class. The result of the refactoring is not really what i expected. The original class has only a constructor with parameters. This constructor is leaved empty in the original class with a missing "MyBase.New(...)". In the original class some constants are defined at the beginning. these declarations are placed after the constructor in the generated base class. The generated base class is embedded in a namespace, but the original class don't have a namespace declaration (the whole application uses the default namespace from the project properties). The indentation has tabs and spaces mixed.

I have attached the original class and the result of the refactoring. I'm working with Visual Studio 2008 SP1 and Build 2080.

Regards
Klaus



Attachment(s):
After.zip
Before.zip
1 comment

Hello Klaus,

Thank you very much for reporting those problems. I was able to reproduce
this behavior and added a bug-report into our tracker: http://youtrack.jetbrains.net/issue/RSRP-209322.

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Today i wanted to extract a base class from an existing class. I added
all members of the existing class to the base class. The result of the
refactoring is not really what i expected. The original class has only
a constructor with parameters. This constructor is leaved empty in the
original class with a missing "MyBase.New(...)". In the original class
some constants are defined at the beginning. these declarations are
placed after the constructor in the generated base class. The
generated base class is embedded in a namespace, but the original
class don't have a namespace declaration (the whole application uses
the default namespace from the project properties). The indentation
has tabs and spaces mixed.

I have attached the original class and the result of the refactoring.
I'm working with Visual Studio 2008 SP1 and Build 2080.

Regards
Klaus
---
Original message URL:
http://devnet.jetbrains.net/message/5284814#5284814



0

Please sign in to leave a comment.