This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 203914 - [inline] Cannot inline this method, a already used.
Summary: [inline] Cannot inline this method, a already used.
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.1
Hardware: PC Other
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-18 15:21 UTC by Jiri Prox
Modified: 2013-04-23 13:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2011-10-18 15:21:28 UTC
Inline refactor fails in following code:

    public int power(int x) {
        return x;
    }    
    public void m() {
        int a = 1;                
        int b = power(a);
        
    }

steps to reproduce:
1) put cursor over 'power' method 
2) call inline refactor

-> warning message is shown:
'Cannot inline this method, a already used.'


Product Version: NetBeans IDE Dev (Build 20111012-05e37e2ddf6f)
Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02
System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)
User directory: C:\Users\jprox\.netbeans\dev
Cache directory: C:\Users\jprox\.netbeans\dev\var\cache
Comment 1 Ralph Ruijs 2011-10-19 09:42:23 UTC
Changeset: 8c8c56a1fd05
Author:    Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Date:      2011-10-19 11:36
Message:   
Issue #203914 - [inline]  Cannot inline this method, a already used.
Comment 2 Quality Engineering 2011-10-20 14:28:46 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/8c8c56a1fd05
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: Issue #203914 - [inline]  Cannot inline this method, a already used.
Comment 3 Jiri Prox 2013-04-23 13:41:46 UTC
v.