Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Eugene Vigdorchik
Subsystem
Editor. Error Highlighting
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Stephen Friedrich
    6 years ago (17 Aug 2005 17:02)
  • Updated by   root
    2 years ago (17 Jan 2010 20:22)
  • Jira: IDEADEV-2276
    (history, comments)
 
IDEA-29882 Good code is red: inheritance, inner class and overloading
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Idea wrongly shows an error at the call to outbound.
It fails to resolve the call to the correct overloaded version:

import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;

public class Scope {
private void foo() {
final Point2D point = new Point2D.Double();

Bounds bounds = new Bounds();
bounds.outcode(point);
}

private static class Bounds extends Rectangle2D.Double {
}
}


Issue was resolved
Comments (0)
 
History
 
Linked Issues (?)
 
Issue has no comments