Bug 103336

Summary: Method-local subtype with instance initializer prevents reload
Product: [Modeling] EMF Reporter: Rajeev Sudra <rajeev>
Component: ToolsAssignee: Dave Steinberg <davidms>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Rajeev Sudra CLA 2005-07-11 11:42:31 EDT
1) Begin with a plugin project with a java annotated emf model that can be 
successfully reloaded.

2) Add a non-emf model class in any package such as:

public class EmfReloadBug {
 public void buggyMethod() {
  Object o = new Object() {
   {
    System.out.println("EMF reload does not like this method local subtype 
instance init");
   }
  }
 }
}

3) Try to reload the genmodel. the package selection page for the reload 
wizard is empty and throws the following exception:

org.eclipse.jdt.core.jdom.DOMException: Attempt to add child to node that 
cannot have children
Comment 1 Dave Steinberg CLA 2005-07-11 11:53:01 EDT
You really never need to report the same bug more than once.

Bug 103320 has been reassigned to JDT, the component that provides JDOM.  But,
given their stance, this won't be resolved until we move to AST.

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