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 39283 - Java Code editor protected sections save incorrectly
Summary: Java Code editor protected sections save incorrectly
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-27 18:24 UTC by dgreen99
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The Java class file that is used to demonstrate the problem. (86.03 KB, text/plain)
2004-01-27 18:27 UTC, dgreen99
Details
The java class after editing, with the protected sections saved incorrectly (85.07 KB, text/plain)
2004-01-27 18:30 UTC, dgreen99
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dgreen99 2004-01-27 18:24:04 UTC
Java Code editor protected sections save 
incorrectly for some files.  The defect can be 
seen by opening the attached java file, adding 
three lines after the java class declaration, 
and then saving the file.  The file in the IDE 
must be closed and reopened to see the results.
Comment 1 dgreen99 2004-01-27 18:27:53 UTC
Created attachment 13104 [details]
The Java class file that is used to demonstrate the problem.
Comment 2 dgreen99 2004-01-27 18:30:54 UTC
Created attachment 13105 [details]
The java class after editing, with the protected sections saved incorrectly
Comment 3 psuk 2004-01-27 19:40:41 UTC
Milo, can you have a look at it?
Comment 4 Miloslav Metelka 2004-01-28 10:44:33 UTC
I was able to reproduce the behavior in NB3.5 on Linux RH9.
I've tried recent dev build and it behaves in the same way.
I'm transferring this to java module for further evaluation because
the guarded sections maintenance is done there.
Comment 5 Jan Pokorsky 2004-01-28 14:42:14 UTC
The issue is caused by invalid guarded block names. They have to be
unique but in your source file there are some ambiguity eg
//GEN-BEGIN:0#property#getString#parameterTypeId#formattedStringValueReturn

I am not aware of any module of the standard netbeans distribution
generating that code. You should contact the provider of the product
(Sun One Studio?) you use or the module owner.