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.

Bug 48687 - Override methods/Synchronize add methods to guarded block
Summary: Override methods/Synchronize add methods to guarded block
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords: RELNOTE
: 49102 51366 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-08 14:59 UTC by mosesonline
Modified: 2007-09-26 09:14 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Picture of the situation (38.81 KB, image/jpeg)
2004-09-08 15:00 UTC, mosesonline
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mosesonline 2004-09-08 14:59:22 UTC
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.
Comment 1 mosesonline 2004-09-08 15:00:10 UTC
Created attachment 17486 [details]
Picture of the situation
Comment 2 Daniel Prusa 2004-09-10 15:08:40 UTC
Checking in OverrideAnnotationSupport.java;
/cvs/java/src/org/netbeans/modules/java/OverrideAnnotationSupport.java,v
 <--  OverrideAnnotationSupport.java
new revision: 1.13; previous revision: 1.12
Comment 3 Daniel Prusa 2004-09-10 15:13:08 UTC
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
Comment 4 Marian Mirilovic 2004-09-16 11:38:54 UTC
*** Issue 49102 has been marked as a duplicate of this issue. ***
Comment 5 Marian Mirilovic 2004-09-16 11:50:24 UTC
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 ?
Comment 6 Pavel Flaska 2004-09-16 12:00:52 UTC
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.

Comment 7 Milan Kubec 2004-09-16 12:29:57 UTC
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.
Comment 8 ehucka 2004-09-16 12:54:21 UTC
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.
Comment 9 Marian Mirilovic 2004-09-16 14:09:10 UTC
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.
Comment 10 Tomas Hurka 2004-11-10 09:38:34 UTC
*** Issue 51366 has been marked as a duplicate of this issue. ***
Comment 11 Jiri Prox 2005-07-12 11:02:38 UTC
Verified in 4.2 (200507110943)