Community
Participate
Working Groups
The code below produces an error although the Java 5.0 compiler and 3.1 release of elcipse does not. import java.awt.Graphics2D; import java.awt.Shape; public class TestClass<V extends DrawObject> { /** Base object for wrapping */ protected V draw; /** * Draw the object with its attached text * * @param graphics the graphics object to draw into */ public void draw( Graphics2D graphics ) { draw.draw(graphics); } } abstract class DrawObject implements Drawable { protected void draw( Graphics2D graphics, Shape shape ) { } } interface Drawable { void draw( Graphics2D graphics ); }
Closing as a duplicate of bug 112109. Added org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest.test859 *** This bug has been marked as a duplicate of 112109 ***
Verified for 3.1.2 using build M20060109-1200.