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

Bug 235404

Summary: [ast rewrite] Extract superclass gives illegal result.
Product: [Eclipse Project] JDT Reporter: Brian Miller <Brian.Miller>
Component: CoreAssignee: David Audel <david_audel>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: martinae
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Brian Miller CLA 2008-06-03 13:26:35 EDT
Build ID: I20080330-1350  (3.4M6)

Steps To Reproduce:
1. Select identifier Bug on LINE 3.
2. Launch the extract superclass wizard.
3. On the wizard's 1st page, name the superclass and press Finish.  The result doesn't compile.

-------------------- Bug.java --------------------
import java.util.*;
abstract class
Bug //LINE 3
extends Stack<String>implements Observer{}
Comment 1 Martin Aeschlimann CLA 2008-06-04 04:16:25 EDT
The result is:

package s;
import java.util.*;
abstract class
Bug //LINE 3
extends Wimplements Observer{}

Comment 2 Eclipse Genie CLA 2020-04-16 03:19:36 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. 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.