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 101405 - IAE at CasualDiff.copyTo
Summary: IAE at CasualDiff.copyTo
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks: 90254
  Show dependency tree
 
Reported: 2007-04-17 16:28 UTC by Jan Pokorsky
Modified: 2007-04-19 12:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IAE (2.53 KB, text/plain)
2007-04-17 16:29 UTC, Jan Pokorsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pokorsky 2007-04-17 16:28:08 UTC
When I am adding a new method to class I get the following IAE.
Comment 1 Jan Pokorsky 2007-04-17 16:29:08 UTC
Created attachment 41100 [details]
IAE
Comment 2 Jan Pokorsky 2007-04-17 16:33:27 UTC
I am adding a new method to empty class

ElementHandle<ExecutableElement> handle = ...;
ExecutableElement elm = handle.resolve(wc);
Tree tree = SourceUtils.treeFor(wc, elm);
List<Tree> members = new ArrayList<Tree>();
members.add(tree);
...
ClassTree newClassTree = make.Class(
        classTree.getModifiers(),
        classTree.getSimpleName(),
        newTypeParams,
        superClass,
        implementsList,
        members);



Here is the debugger output.
old class tree:

public class NewClassEx {
    
    public NewClassEx() {
        super();
    }
}

new class tree:

public class NewClassEx extends newpackage.NewSuperClass {
    
    public void public_method() {
    }
}
Comment 3 Pavel Flaska 2007-04-19 09:01:38 UTC
Honza said it is no longer reproducible.

IMO revision 1.118 fixed it.
----------------------------
revision 1.118
date: 2007/04/18 14:44:49;  author: pflaska;  state: Exp;  lines: +19 -37
Removed obsolete method and its usages. Clean-up.
----------------------------
Comment 4 Jan Pokorsky 2007-04-19 12:04:04 UTC
Yes it works now. I guess 6.0M9 is the proper target milestone.