Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 395037

Summary: [inline] Inline method with null argument leads to compilation error
Product: [Eclipse Project] JDT Reporter: Milos Gligoric <milos.gligoric>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: manju656
Version: 4.2.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Milos Gligoric CLA 2012-11-25 23:31:20 EST
Steps to reproduce:
1. Invoke "Inline" on method "m2" in code below
2. The resulting file does not compile ("length cannot be resolved or is not a field")

public class C {

    void m() {
        // Invoke "Inline" on the method below
        m2(null);
    }

    void m2(Object[] objs) {
        Object[] nobjs = new Object[objs.length];
    }
}

(Thanks to Anirudh Balagopal for helping with the bug report.)
Comment 1 Martin Mathew CLA 2013-01-16 02:28:50 EST
Issue is reproducible using I20121029-2000. The code refactoring results in compiler error.
Comment 2 Eclipse Genie CLA 2020-01-19 14:42:44 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.