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.
This bug was originally marked as duplicate of bug 217498, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.1 Beta (Build 201508041349) VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27 OS: Windows 7 User Comments: khamberg: Cutting a small chunk of java code from one function and pasting it into another in the same file Stacktrace: java.lang.IllegalArgumentException: Copying to 2195 is greater then its size (1821). at org.netbeans.modules.java.source.save.CasualDiff.copyTo(CasualDiff.java:5502) at org.netbeans.modules.java.source.save.CasualDiff.copyTo(CasualDiff.java:5481) at org.netbeans.modules.java.source.save.CasualDiff.diffClassDef(CasualDiff.java:914) at org.netbeans.modules.java.source.save.CasualDiff.diffTreeImpl0(CasualDiff.java:4955) at org.netbeans.modules.java.source.save.CasualDiff.diffTreeImpl(CasualDiff.java:4871) at org.netbeans.modules.java.source.save.CasualDiff.diffTree(CasualDiff.java:4803)
Created attachment 155975 [details] stacktrace
Duplicate of bug 240803. Thank you for reporting. *** This bug has been marked as a duplicate of bug 240803 ***