Bug 211861

Summary: [push down] does not check for all possible references to the method being pushed
Product: [Eclipse Project] JDT Reporter: Max Schaefer <xiemaisi>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: akiezun, daniel_megert, kely_garcia, markus.kell.r, martinae, milos.gligoric
Version: 3.2.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Max Schaefer CLA 2007-12-04 05:45:53 EST
Build ID: M20070212-1330

Steps To Reproduce:
Test case:

class A {
  void m() { }
}
class B extends A {
  public static void main(String[] args) {
    new A().m();
  }
}

Pushing down A.m into B does not detect the reference to A.m in B.main, so the resulting program fails to compile.

More information:
Comment 1 Martin Aeschlimann CLA 2007-12-04 06:13:01 EST
*** Bug 31862 has been marked as a duplicate of this bug. ***
Comment 2 Deepak Azad CLA 2010-06-15 16:02:59 EDT
*** Bug 195004 has been marked as a duplicate of this bug. ***
Comment 3 Martin Mathew CLA 2012-12-18 00:08:33 EST
*** Bug 395862 has been marked as a duplicate of this bug. ***
Comment 4 Eclipse Genie CLA 2019-03-12 18:09:39 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 Dani Megert CLA 2019-03-22 12:10:41 EDT
Still an issue in 4.11.
Comment 6 Eclipse Genie CLA 2021-03-12 04:07:47 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Eclipse Genie CLA 2023-03-04 17:00:39 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.