### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java,v retrieving revision 1.52 diff -u -r1.52 ClassLiteralAccess.java --- compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java 1 Oct 2010 21:09:58 -0000 1.52 +++ compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java 28 Oct 2010 14:13:44 -0000 @@ -101,7 +101,8 @@ scope.problemReporter().illegalClassLiteralForTypeVariable((TypeVariableBinding)this.targetType, this); } ReferenceBinding classType = scope.getJavaLangClass(); - if (classType.isGenericType()) { + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=328689 + if (scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5) { // Integer.class --> Class, perform boxing of base types (int.class --> Class) TypeBinding boxedType = null; if (this.targetType.id == T_void) {