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.

Bug 66227 - Fix Imports and misspelled/missing types
Summary: Fix Imports and misspelled/missing types
Status: REOPENED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
: 74485 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-07 10:15 UTC by ahe
Modified: 2009-08-06 22:45 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ahe 2005-10-07 10:15:06 UTC
Fix imports doesn't remove misspelled or missing
types.  For example:


import java.lang.Translucent;

public class Test {}
Comment 1 Jan Becicka 2005-10-07 13:41:31 UTC
Dane, please take a look at it.
Comment 2 Daniel Prusa 2005-10-14 09:25:30 UTC
We do not remove missing types intensionally. This behaviour was introduced by
fix of issue 63366 - see the reasons given there.
Comment 3 ahe 2005-10-14 09:56:09 UTC
Please reconsider.  This might be a matter of creating
the right UI: a dialog could pop up and ask what to do.
Comment 4 Daniel Prusa 2005-10-14 10:29:00 UTC
Ok, there could be some ui or options handling this situation.
Comment 5 Daniel Prusa 2006-05-09 15:50:11 UTC
*** Issue 74485 has been marked as a duplicate of this issue. ***
Comment 6 matthies 2009-08-06 22:45:25 UTC
Bumping this issue.
I also came across a case like this:

    import java.text.*;
    import java.util.Format;
    
    public class Test
    {
        Format f;
    }

Here the usage of "Format" is not highlighted as an error, although java.util.Format doesn not exist. In any case, it 
would be helpful if Fix Imports would remove the faulty import even in a case such as this one.