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.
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.
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)
/cvs/java/src/org/netbeans/modules/java/JavaEditor.java,v <-- JavaEditor.java new revision: 1.130; previous revision: 1.129
Davide, can you verify that? Thanks
Verified