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: NetBeans IDE Dev (Build 201208270001) VM: Java HotSpot(TM) Client VM, 20.7-b02, Java(TM) SE Runtime Environment, 1.6.0_32-b05 OS: Windows 7 User Comments: manikantannaren: Started defining a private class in a JUnit Test. Stacktrace: java.lang.IllegalArgumentException: Copying to 3910 is greater then its size (3905). at org.netbeans.modules.java.source.save.CasualDiff.copyTo(CasualDiff.java:3714) at org.netbeans.modules.java.source.save.CasualDiff.copyTo(CasualDiff.java:3697) at org.netbeans.modules.java.source.save.CasualDiff.diffClassDef(CasualDiff.java:428) at org.netbeans.modules.java.source.save.CasualDiff.diffTreeImpl(CasualDiff.java:3226) at org.netbeans.modules.java.source.save.CasualDiff.diffTree(CasualDiff.java:3165) at org.netbeans.modules.java.source.save.CasualDiff.diffTree(CasualDiff.java:3153)
Created attachment 123635 [details] stacktrace
Created attachment 125549 [details] stacktrace Type in "class" and press tab in the following snipped. /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javaapplication9; /** * * @author Bender */ public class JavaApplication9 { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here } class }
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=191896
Created attachment 129833 [details] stacktrace Adding a private static class to the bottom of a class definition whose definition was incomplete (being created).
Created attachment 129900 [details] stacktrace began creating an inner class to encapsulate some data that was in the outer class. Cut the members from the enclosing class defintiion and becan typing the inner class definition with the intent of pasting the previously cut members into it.
Created attachment 133217 [details] stacktrace IAE when editing code. The editro state when the exception occurred (| is cursor): package classStructure; public class MultipleTopLevelClassesInFile { } class |
Created attachment 134226 [details] stacktrace adding a private static class in a Java file.
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=191896
*** Bug 234351 has been marked as a duplicate of this bug. ***
*** Bug 241763 has been marked as a duplicate of this bug. ***
Created attachment 148041 [details] stacktrace Deleting code in java editor
(In reply to markiewb from comment #11) > Created attachment 148041 [details] > stacktrace > > Deleting code in java editor If it is possible to reproduce the defect, could you please attach or send me by email the exact file's content prior / after the deletion ?
Can't reproduce in dev and 8.0; waiting for more data.