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.
latest daily build 20081219-404 This is not very reproducible. I created the first class using code template (cls) with a constructor. Then, using the same class code template (cls) again to create a 2nd class. After the code template is displayed, the following exception popped up immediately. See attached ide log file for complete stack trace. SEVERE [global] java.lang.IllegalStateException: Region: <355,359) not found: <340,340) <340,349) <359,359) <355,359) <363,367) <367,371) <371,384) <385,389) <389,393) <397,401) <401,405) at org.netbeans.lib.editor.codetemplates.textsync.TextRegionManager.findRegionIndex(TextRegionManager.java:514) at org.netbeans.lib.editor.codetemplates.textsync.TextRegionManager.fixRegionStartOffset(TextRegionManager.java:411) at org.netbeans.lib.editor.codetemplates.textsync.TextRegionManager.setText(TextRegionManager.java:393) at org.netbeans.lib.editor.codetemplates.textsync.TextSync.setText(TextSync.java:133) ...
Created attachment 75204 [details] ide log file
Reassigning to Julien for evaluation later...
I tried to reproduced but I didn't manage to do it. I guess that it was solved. Steps I took: - Use "Alt + Insert" and select "class" - Let name and heritage to their default value - Add a __init__ function - Use "Alt + Insert" again and select "class" - Let name and heritage to their default value - Add a __init__ function Nothing happened.