Community
Participate
Working Groups
In MIDP 1.0 in class javax.microedition.lcdui.Canvas (a subclass of javax.microedition.lcdui.Displayable) there is a method called paint() which is abstract and protected. A subclass of Canvas in another package should be allowed to override this method. This is not allowed. I created a class called GameInfoScreen that subclasses Canvas and I get the message from eclipse build M5 "This class must implement the inherited abstract method Displayable.paint(Graphics), but cannot override it since it is not visible from GameInfoScreen. Either make the type abstract or make the inherited method visible." The Displayable class does not have a method called paint() but the subclass of it Canvas does. I have no problem compiling my code using Jikes so eclipse is not identifying a relevant problem.
Assuming this was not on latest integration build, this is already resolved. *** This bug has been marked as a duplicate of 31398 ***