Bug 46262

Summary: IMethod.delete(...) does not work for anonymous inner Classes
Product: [Eclipse Project] JDT Reporter: Heywinkel <klaus.heywinkel>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Heywinkel CLA 2003-11-07 08:24:41 EST
I tried to change the source for Methods in anonymous inner Classes in a self-
developed plugin. This result in an Exception

Java Model Exception: Java Model Status [Operation not supported for specified 
element type(s):<anonymous #1> [in GeossMessageBox(String, String, String, int, 
Icon, List, IMessageBoxCallback, IGEOSSController, int) [in GeossMessageBox [in 
[Working copy] GeossMessageBox.java [in de.gerling.geoss.gui [in src [in 
GeossXP]]]]]]].

It's the same with IType.createMethod(..).

Once I can get the childrens of IMethod's (as in Eclipse 3.0 M4), I should be 
able to modify these Elements.
Comment 1 Jerome Lanneluc CLA 2003-12-17 11:24:22 EST

*** This bug has been marked as a duplicate of 43483 ***