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

Key: IDEABKL-4981
Type: Usability Problem Usability Problem
Status: Open Open
Priority: Normal Normal
Assignee: Vladislav Kaznacheev
Reporter: Vladislav Kaznacheev
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

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

Confusing error message when trying to override abstract method with package visibility

Created: 30 Oct 06 14:14   Updated: 17 Jan 07 17:45
Component/s: Editor. Error Highlighting
Affects Version/s: None
Fix Version/s: None

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


 Description  « Hide
package p1;
class C1 {
  void m ();
}
package p2;
class C2 extends C1 { // error message here
}

Currently IDEA displays error message: Class C2 must be either declared abstract or implement method 'm' in 'p1.C1'
This message is displayed even if method m is present in C2.

Javac is just as unhelpful in this situation, but I think IDEA could do better. Ideally, it should:

  • insist that C2 absolutely must be abstract (no option to implement method)
  • if the method is present in C2, higlight it as error or warning (needs more thought)


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