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

Key: IDEABKL-4978
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Alexey Kudravtsev
Reporter: Boaz Nahum
Votes: 0
Watchers: 1
Available Workflow Actions

Mark as Stalled
Operations

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

Bad code is Green

Created: 18 Dec 06 23:00   Updated: 17 Jan 07 14:03
Component/s: Editor. Error Highlighting
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 6,137
Severity: High


 Description  « Hide
When class wrongly extends a class, javac complain, IntelliJ not

The below code is bad, both javac and intellij complain baout it

public class I {
}

public class C implements I{
}

But in the below code is javac complains, IntellJ not:

public class BadIsGreen7 {
    public void test() {
        I i = new C();
    }
}


D:\IntelliJ-Bugs\badisgreen\badisgreen7\BadIsGreen7.java
Error:Error:line (12)incompatible types



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