View | Details | Raw Unified | Return to bug 328689 | Differences between
and this patch

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java (-1 / +2 lines)
Lines 101-107 Link Here
101
			scope.problemReporter().illegalClassLiteralForTypeVariable((TypeVariableBinding)this.targetType, this);
101
			scope.problemReporter().illegalClassLiteralForTypeVariable((TypeVariableBinding)this.targetType, this);
102
		}
102
		}
103
		ReferenceBinding classType = scope.getJavaLangClass();
103
		ReferenceBinding classType = scope.getJavaLangClass();
104
		if (classType.isGenericType()) {
104
		// https://bugs.eclipse.org/bugs/show_bug.cgi?id=328689
105
		if (scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_5) {
105
			// Integer.class --> Class<Integer>, perform boxing of base types (int.class --> Class<Integer>)
106
			// Integer.class --> Class<Integer>, perform boxing of base types (int.class --> Class<Integer>)
106
			TypeBinding boxedType = null;
107
			TypeBinding boxedType = null;
107
			if (this.targetType.id == T_void) {
108
			if (this.targetType.id == T_void) {

Return to bug 328689