Bug 21482

Summary: Error in generated byte code
Product: [Eclipse Project] JDT Reporter: Boris Pruessmann <boris>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Boris Pruessmann CLA 2002-07-11 09:10:54 EDT
If you compile the following code (non-important pieces left out)
within eclipse, (imho) wrong bytecode is generated:

import org.eclipse.team.internal.ui.actions.TeamAction;

public class TestClassA extends TeamAction {
  public void run(IAction action) {
    run(new WorkspaceModifyOperation() {
      protected void execute(IProgressMonitor monitor) {
        getSelectedResources();
      }
    }, "", PROGRESS_DIALOG);
  }
}

If you take a look at the generated bytecode, you'll realize that the 
getSelectedResources() call is not translated to invokevirtual but to 
invokespecial, which is (imho) wrong as it renders polymorphism in that area 
unusable.

Please correct me if I am wrong.
Comment 1 Philipe Mulet CLA 2002-07-11 09:46:35 EDT
You are right. This is a duplicate of bug 21447.

*** This bug has been marked as a duplicate of 21447 ***
Comment 2 Jerome Lanneluc CLA 2002-08-20 05:38:13 EDT
Verified