Bug 103336 - Method-local subtype with instance initializer prevents reload
Summary: Method-local subtype with instance initializer prevents reload
Status: RESOLVED DUPLICATE of bug 103320
Alias: None
Product: EMF
Classification: Modeling
Component: Tools (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dave Steinberg CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-11 11:42 EDT by Rajeev Sudra CLA
Modified: 2005-07-11 11:53 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***