View | Details | Raw Unified | Return to bug 82859
Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java (-1 / +10 lines)
Lines 87-93 Link Here
87
		ReferenceBinding classType = scope.getJavaLangClass();
87
		ReferenceBinding classType = scope.getJavaLangClass();
88
		if (classType.isGenericType()) {
88
		if (classType.isGenericType()) {
89
		    // Integer.class --> Class<Integer>, perform boxing of base types (int.class --> Class<Integer>)
89
		    // Integer.class --> Class<Integer>, perform boxing of base types (int.class --> Class<Integer>)
90
		    this.resolvedType = scope.createParameterizedType(classType, new TypeBinding[]{ scope.boxing(targetType) }, null/*not a member*/);
90
			TypeBinding boxedType = null;
91
			if (targetType.id == T_void) {
92
				boxedType = scope.environment().getType(JAVA_LANG_VOID);
93
				if (boxedType == null) {
94
					boxedType = new ProblemReferenceBinding(JAVA_LANG_VOID, ProblemReasons.NotFound);
95
				}
96
			} else {
97
				boxedType = scope.boxing(targetType);
98
			}
99
		    this.resolvedType = scope.createParameterizedType(classType, new TypeBinding[]{ boxedType }, null/*not a member*/);
91
		} else {
100
		} else {
92
		    this.resolvedType = classType;
101
		    this.resolvedType = classType;
93
		}
102
		}

Return to bug 82859