"Extract Superclass" produces corrupted code when used on the code below.
(select "ONE" and "TWO" for the superclass.)


Before:
******
   public class Spike
   {
       public final static String
             ONE = "1" ,
             TWO = "2" ;

       public static void main( String[] args )  {
         System.out.println( "ONE = " + ONE );
         System.out.println( "TWO = " + TWO );
       }
}

After :
******

    public class Spike extends SpikeBase {
     ,

        public static void main( String[] args )
        {
            System.out.println( "ONE = " + ONE );
            System.out.println( "TWO = " + TWO );
        }
    }

    public class SpikeBase
    {
       public final static String
                ONE = "1"
        TWO = "2" ;
    }


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to