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 217498 - IllegalArgumentException: Copying to 3910 is greater then its size (3905).
Summary: IllegalArgumentException: Copying to 3910 is greater then its size (3905).
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 234351 241763 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-28 06:59 UTC by manikantannaren
Modified: 2014-08-15 20:25 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191896


Attachments
stacktrace (6.08 KB, text/plain)
2012-08-28 06:59 UTC, manikantannaren
Details
stacktrace (6.08 KB, text/plain)
2012-10-07 18:59 UTC, markiewb
Details
stacktrace (6.51 KB, text/plain)
2013-01-02 23:47 UTC, rburkhead
Details
stacktrace (6.51 KB, text/plain)
2013-01-04 14:32 UTC, rburkhead
Details
stacktrace (5.24 KB, text/plain)
2013-03-29 16:45 UTC, Jiri Prox
Details
stacktrace (6.51 KB, text/plain)
2013-05-08 17:04 UTC, alied
Details
stacktrace (5.45 KB, text/plain)
2014-07-14 14:43 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description manikantannaren 2012-08-28 06:59:33 UTC
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)
Comment 1 manikantannaren 2012-08-28 06:59:35 UTC
Created attachment 123635 [details]
stacktrace
Comment 2 markiewb 2012-10-07 18:59:14 UTC
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 
    
}
Comment 3 Exceptions Reporter 2012-12-12 23:53:09 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=191896
Comment 4 rburkhead 2013-01-02 23:47:16 UTC
Created attachment 129833 [details]
stacktrace

Adding a private static class to the bottom of a class definition whose definition was incomplete (being created).
Comment 5 rburkhead 2013-01-04 14:32:16 UTC
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.
Comment 6 Jiri Prox 2013-03-29 16:45:08 UTC
Created attachment 133217 [details]
stacktrace

IAE when editing code.


The editro state when the exception occurred (| is cursor):
package classStructure;

public class MultipleTopLevelClassesInFile {

}

class |
Comment 7 alied 2013-05-08 17:04:47 UTC
Created attachment 134226 [details]
stacktrace

adding a private static class in a Java file.
Comment 8 Exceptions Reporter 2013-05-08 17:04:54 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=191896
Comment 9 Svata Dedic 2014-06-06 11:26:59 UTC
*** Bug 234351 has been marked as a duplicate of this bug. ***
Comment 10 Svata Dedic 2014-06-06 11:58:42 UTC
*** Bug 241763 has been marked as a duplicate of this bug. ***
Comment 11 markiewb 2014-07-14 14:43:20 UTC
Created attachment 148041 [details]
stacktrace

Deleting code in java editor
Comment 12 Svata Dedic 2014-07-14 19:33:08 UTC
(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 ?
Comment 13 Svata Dedic 2014-08-15 13:51:43 UTC
Can't reproduce in dev and 8.0; waiting for more data.