History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-13310
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Alexey Kudravtsev
Reporter: Esko Luontola
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Bad code is green: new somePackage();

Created: 25 Dec 06 18:45   Updated: 17 Jan 07 14:10
Component/s: Editor. Error Highlighting
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. Bad code is green - new somePackage().png
(61 kb)

Build: 6,141
Severity: Medium


 Description  « Hide
The following code is not highlighted as an error:
public class Test {
    public static void main(String[] args) {
        new somePackage(); // the project has a package called "somePackage" but no such class exists
        new java.lang();
    }
}

But the compiler will give the following errors from it:

Error:Error:line (3)cannot find symbol class somePackage
    Error:Error:line (4)cannot find symbol class lang

It is highlighted as an error only when no package with such a name exist (see the attached picture).



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.