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.
Created attachment 132807 [details] Shows the issue <code> public List<Fix> run(CompilationInfo compilationInfo, String diagnosticKey, int offset, TreePath treePath, Data<Void> data) { boolean isClass = (treePath.getLeaf().getKind() == Kind.CLASS); if (!isClass) { return null; } //.. return Collections.<Fix>emptyList(); } </code> * Try to inline "isClass" ACTUAL: * popup with error "Variable is assigned to more than once", variable cannot be inlined - see screenshot EXPECTED: * variable can be inlined Product Version: NetBeans IDE Dev (Build 201303152300)
@Ralph: What's the status here? You started the issue one month ago?
(In reply to comment #1) > @Ralph: What's the status here? You started the issue one month ago? @markiewb: apologies, it has been a month again. I lost the previous fix when I moved to a new machine. I have a new fix now and will push it today.
changeset : http://hg.netbeans.org/jet-main/rev/fe703675cf25 author : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> date : Tue May 21 15:56:31 CEST 2013 summary : #227682 - Inline temp: Cannot inline variable - error 'Variable is assigned to more than once'
Integrated into 'main-golden', will be available in build *201305212300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/fe703675cf25 User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: #227682 - Inline temp: Cannot inline variable - error 'Variable is assigned to more than once'