Bug 199667 - [type wizards] 'New Class' wizard allows to set final class as a superclass
Summary: [type wizards] 'New Class' wizard allows to set final class as a superclass
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P5 minor with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
: 405796 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-12 05:53 EDT by Marcin Kowalski CLA
Modified: 2023-04-25 13:49 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Kowalski CLA 2007-08-12 05:53:29 EDT
Build ID: I20070621-1340

Steps To Reproduce:
1. Open 'New Java Class' dialog
2. Set some Name
3. Set java.lang.String as a Superclass and click 'Finish'


More information:
Comment 1 Tomasz Bartczak CLA 2010-03-12 09:47:57 EST
Suppose you have 
a(String str); and 
a(SomeInterface s);

when you write 
a(new InterfaceImpl());

select new InterfaceImpl() and use quick assist 
'create class InterfaceImpl()' - 
it will show a create class dialog with superclass field set to java.lang.String, which is wrong, because it should be interface SomeInterface, as String is final, so it is a call to a(SomeInterface s);
Comment 2 Dani Megert CLA 2013-04-16 10:24:47 EDT
*** Bug 405796 has been marked as a duplicate of this bug. ***
Comment 3 Eclipse Genie CLA 2019-04-26 15:57:05 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.

If you have further information on the current state of the bug, please add it. 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.
Comment 4 Dani Megert CLA 2019-04-28 10:30:34 EDT
Still an issue in 4.12 M1.
Comment 5 Eclipse Genie CLA 2021-04-19 14:31:02 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.

If you have further information on the current state of the bug, please add it. 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.
Comment 6 Jeff Johnston CLA 2021-04-19 19:26:16 EDT
Still occurs in 4.20 M1
Comment 7 Eclipse Genie CLA 2023-04-24 07:51:14 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.

If you have further information on the current state of the bug, please add it. 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.
Comment 8 Jeff Johnston CLA 2023-04-25 13:49:25 EDT
(In reply to Marcin Kowalski from comment #0)
> Build ID: I20070621-1340
> 
> Steps To Reproduce:
> 1. Open 'New Java Class' dialog
> 2. Set some Name
> 3. Set java.lang.String as a Superclass and click 'Finish'
> 
> 
> More information:

This first scenario has been fixed.  Using 2023-03.