This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[release50-200512142030, JDK 1.5.0_06] Steps to reproduce: 1) Have following class and super class: public class B { public B() { } public double d() { return 123.0d; } public float f() { return 123.0f; } } public class A extends B { public A() { } } 2) Invoke Push Down refac in class B, select all items and finish refactoring Result is: public class A extends B { public A() { } public double d() { return 123.0; } public float f() { return 123.0; } } Note missing 'f' and 'd' in return statements. Source is not compilable. Doesn't hapen when doing Pull Up on the same classes.
Fixed in trunk. float literal now suffixed with letter 'f'. 'd' suffix is optional for double literal so the current implementation is correct. Checking in FloatLiteralImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/FloatLiteralImpl.java,v <-- FloatLiteralImpl.java new revision: 1.5; previous revision: 1.4 done
This patch is OK.
Fix verified in dev-200512181900.
Fixed in release50 branch. Checking in FloatLiteralImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/FloatLiteralImpl.java,v <-- FloatLiteralImpl.java new revision: 1.4.46.1; previous revision: 1.4 done
Verified in 5.0 200512212030 && 5.1 200512211900.
Reorganization of java component