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 45863 - Add new Method goes into protected area
Summary: Add new Method goes into protected area
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:
Depends on:
Blocks:
 
Reported: 2004-07-04 09:41 UTC by hlein
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hlein 2004-07-04 09:41:47 UTC
Build 200407011917
Java 1.5.0 Beta2

Within the project window right click on Methods,
select Add Method

Set method parameters. i.e. name, Access private,
add a parameter

click Ok

The new method is added at the end of the
"Variables declaration - do not modify" block at
the end of the java source file. Therefor it
cannot be edited.
Comment 1 Jan Lahoda 2004-07-16 14:13:07 UTC
Verified on Linux, JDK1.4.2_04. Steps to reproduce:
1. Open a Java project.
2. In some package create a form (JPanel in my case).
3. In the Project view select the corresponding node, expand, select
the class and expand it.
4. Select the "Methods" node and invoke the context menu. Select "Add
Method...".
5. A dialog appears, change the name of the method and press "OK".
6. The newly created method is created inside the guarded block.

Not sure whether this problem is in form module or in java module, so
passing to form for evaluation.
Comment 2 Jan Stola 2004-07-16 14:57:49 UTC
Reassigning to java module.
Comment 3 Marek Grummich 2004-07-16 15:09:54 UTC
I am raising priority to P2.
Comment 4 Martin Matula 2004-07-17 00:32:59 UTC
Dan, please look at this.
Comment 5 Daniel Prusa 2004-07-21 15:36:57 UTC
Fixed.
/cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/SourceEditSupport.java,v
 <--  SourceEditSupport.java
new revision: 1.8; previous revision: 1.7
Comment 6 Jiri Prox 2005-07-11 13:04:12 UTC
Verified in 4.2 (200507061800)
Comment 7 Quality Engineering 2007-09-20 09:42:05 UTC
Reorganization of java component