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 26804 - Lost guarded blocks
Summary: Lost guarded blocks
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: -S1S-
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-27 12:30 UTC by David Kaspar
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 David Kaspar 2002-08-27 12:30:20 UTC
build #200208230100

How to reproduce (You need CORBA module for
reproduction):
1) Start NB using JDK 1.4
2) Create New file from template: "CORBA|ServerMain"
3) Select "ServerMain|class ServerMain|RootPOA"
4) Right-click on this node and select
"Add|Servant" popup menu item
5) NOTE - Dialog appears
6) Press OK
7) Open file in editor (if it is not opened)
8) Press Ctrl+S for save
9) Press Ctrl+F4 for close
10) ERROR - Servant node disappear from POA hierarchy
11) Double-click on "ServerMain|class
ServerMain|RootPOA" node
12) See ServerMain file in editor
13) ERROR - No guarded block is visible - due to
this bug, previous ERROR occured too.
Comment 1 Svata Dedic 2002-08-27 15:52:49 UTC
The issue is caused by filtering behaviour of JavaEditor when it
load/saves a Document. o.o.text.PositionRefs maintain their offsets
even when the document is closed, and they become INVALID, when
JavaEditor's I/O injects guarded block comments before such remembered
position. Will investigate further, since PositionBounds.getText() is
supposed to load the document back (filtering out the guarded portions
again)
Comment 2 Svata Dedic 2003-01-07 11:07:12 UTC
/cvs/java/src/org/netbeans/modules/java/JavaEditor.java,v  <-- 
JavaEditor.java
new revision: 1.130; previous revision: 1.129
Comment 3 Jan Becicka 2003-01-21 10:55:45 UTC
Davide, can you verify that? Thanks
Comment 4 Jan Becicka 2003-02-27 09:21:04 UTC
Davide, can you verify that? Thanks
Comment 5 David Kaspar 2003-03-19 13:37:36 UTC
Verified