Bug 109059 - [import rewrite] ImportRewrite#addImportFromSignature(..) creates invalid import for local types
Summary: [import rewrite] ImportRewrite#addImportFromSignature(..) creates invalid imp...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
: 110390 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-08 11:05 EDT by Markus Keller CLA
Modified: 2022-07-19 10:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2005-09-08 11:05:40 EDT
I20050906-1200

package xy;
import java.util.ArrayList;
public class LocalTest {
    void m() {
        class Local {
        	Local fSelf;
        }
        new ArrayList().add(new Local().fSelf);
    }
}

Infer generic type arguments for the CU above. An import xy.LocalTest.98.Local
is created for the local class 'Local'. addImportFromSignature(..) should handle
local types by just skipping package name segments that start with a number.

See also bug 104879 which made support for local classes possible at all.
Comment 1 Markus Keller CLA 2005-09-26 06:26:52 EDT
*** Bug 110390 has been marked as a duplicate of this bug. ***
Comment 2 Eclipse Genie CLA 2020-06-12 15:25:23 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 3 Eclipse Genie CLA 2022-07-19 10:25:26 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.