Index: compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java,v retrieving revision 1.31 diff -u -r1.31 ClassLiteralAccess.java --- compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java 9 Dec 2004 18:24:32 -0000 1.31 +++ compiler/org/eclipse/jdt/internal/compiler/ast/ClassLiteralAccess.java 14 Jan 2005 18:03:15 -0000 @@ -87,7 +87,16 @@ ReferenceBinding classType = scope.getJavaLangClass(); if (classType.isGenericType()) { // Integer.class --> Class, perform boxing of base types (int.class --> Class) - this.resolvedType = scope.createParameterizedType(classType, new TypeBinding[]{ scope.boxing(targetType) }, null/*not a member*/); + TypeBinding boxedType = null; + if (targetType.id == T_void) { + boxedType = scope.environment().getType(JAVA_LANG_VOID); + if (boxedType == null) { + boxedType = new ProblemReferenceBinding(JAVA_LANG_VOID, ProblemReasons.NotFound); + } + } else { + boxedType = scope.boxing(targetType); + } + this.resolvedType = scope.createParameterizedType(classType, new TypeBinding[]{ boxedType }, null/*not a member*/); } else { this.resolvedType = classType; }