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

Bug 288925

Summary: [inline] Inlining final local variable breaks inner classes (referenced variable not final)
Product: [Eclipse Project] JDT Reporter: James Shaw <js102>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: deepakazad, markus.kell.r, Olivier_Thomann
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Test case none

Description James Shaw CLA 2009-09-09 06:22:49 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
Build Identifier: I20090611-1540

Test class is attached.  Inlining 'final Child c' breaks compilation, because the refactoring does not make the method argument 'Bean b' final.

Either the refactor should make the argument final, or it should refuse to refactor at all.

Reproducible: Always
Comment 1 James Shaw CLA 2009-09-09 06:23:24 EDT
Created attachment 146735 [details]
Test case
Comment 2 Olivier Thomann CLA 2009-09-09 07:41:24 EDT
Move to JDT/UI
Comment 3 Deepak Azad CLA 2012-11-21 21:10:46 EST

*** This bug has been marked as a duplicate of bug 394723 ***