Community
Participate
Working Groups
Extract Method must not generate return type with type variable. public Object foo() { return /*[*/A_test363.class/*]*/; } => was: protected Class<T> extracted() { return /*[*/A_test363.class/*]*/; } => expected: Class<A_test363> or Class<?> or Class<? extends A_test363> or whatever makes sense. Came up when setting test project compiler compliance to 1.5. Disabled test363.
Encountered this as well. The problem is that the type binding returned form the type literal expression is Class<T>. However it should be Class<A_test363> Moving to JDT/Core.
Fixed and released in HEAD. Regression test added in ASTConverter15Test.test0086
Verified (in I20041214-2000) that the test ensures the type binding of a class literal includes the class name as the type argument of java.lang.Class.