Bug 32579 - abstract protected method can't be overridden
Summary: abstract protected method can't be overridden
Status: RESOLVED DUPLICATE of bug 31398
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 2.1 RC2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-23 00:58 EST by Gerard Guillemette CLA
Modified: 2003-02-24 05:07 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***