Community
Participate
Working Groups
Build ID: M20080911-1700 Steps To Reproduce: Create a class inside a method with a type parameter with a bound. Create a subclass of this class, using a type parameter that does not extends the bound. This code should not compile, but in Eclipse it does. Example: public class BoundNotChecked { public static void main(String... args) { class SuperclassZom<T extends Number> { public T t; } class Subclass extends SuperclassZom<String> { } new Subclass().t="test"; } } Trying to run this code gives a java.lang.VerifyError More information: The bound is properly checked if the classes are just inner classes of the class; outside the method.
Created attachment 121691 [details] Proposed patch and testcase
Fix and test released for 3.5M5
Verified for 3.5M5 using I20090126-1300