Bug 21482 - Error in generated byte code
Summary: Error in generated byte code
Status: VERIFIED DUPLICATE of bug 21447
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-11 09:10 EDT by Boris Pruessmann CLA
Modified: 2002-08-20 05:38 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 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