Bug 32579

Summary: abstract protected method can't be overridden
Product: [Eclipse Project] JDT Reporter: Gerard Guillemette <GerardRG>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 RC2   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Gerard Guillemette CLA 2003-02-23 00:58:27 EST
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.
Comment 1 Philipe Mulet CLA 2003-02-24 05:07:56 EST
Assuming this was not on latest integration build, this is already resolved.

*** This bug has been marked as a duplicate of 31398 ***