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.
I tied to override some Listener Methods to a class file created with the formeditor (JPanel). I've pressed Ctrl-I, selected the methods and the methods were integrated in the editor window, but in the secure part(blue) of the code. It happens everytime if there is no code after the declaration of the private vars.
Created attachment 17486 [details] Picture of the situation
Checking in OverrideAnnotationSupport.java; /cvs/java/src/org/netbeans/modules/java/OverrideAnnotationSupport.java,v <-- OverrideAnnotationSupport.java new revision: 1.13; previous revision: 1.12
The related commit is as follows (the previously inserted is not correct): Checking in JMIInheritanceSupport.java; /cvs/java/src/org/netbeans/modules/java/tools/JMIInheritanceSupport.java,v <-- JMIInheritanceSupport.java new revision: 1.6; previous revision: 1.5
*** Issue 49102 has been marked as a duplicate of this issue. ***
This issue is fixe in the trunk , BUT it isn't fixed for Beta 2. So question of the day is ... Do somebody want fix it for Beta2 ?
I'm against integration to beta2. 1) Dan is on vacation and I do not take resposibility to merge it, 2) We have not tests for guarded block.
Workaround exists: Let IDE create the code in guarded block, copy the generated code, do UNDO (it should remove the code from guarded block) and then paste the code somewhere outside of guarded block. In case of not fixing it, should be in Release notes.
I tested a patched beta2 build and it seems there is not a problem. But there are several other fixes in the class JMIInheritanceSupport since beta2 branch.
Ok, Agreed with Pavel, wan't fix for Beta2. but I think this is good Release Notes candodate, only for NB4.0 Beta 2 (It will be fixed for NB4.0 FCS) Pavel, provide a justification for release noting the bug including a description of user impact and the workaround, thanks in advance.
*** Issue 51366 has been marked as a duplicate of this issue. ***
Verified in 4.2 (200507110943)