bug with "Replace temp by query" and array of array:


*********
Before:
*********
     public void test()
     {
         double     sizes[][]    =
                     { {1,2,3},
                       {1,2,3}
                     };
         int nofCols = sizes ()[0].length ;
     }


*********
Action :
*********
    Replace temp by query, on sizes



*********
After:
*********
     public void test()
     {
         int nofCols = sizes ()[0].length ;
     }

     private double[][] sizes()
     {
         return { {1,2,3},
                               {1,2,3}
                             };
     }


It doesn't compile.
It should have produced :

         return new double[][] { {1,2,3},
                               {1,2,3}
                             };

_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to