Index: compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java,v retrieving revision 1.108 diff -u -r1.108 CodeStream.java --- compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java 26 May 2005 21:02:13 -0000 1.108 +++ compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java 9 Jun 2005 23:52:03 -0000 @@ -5129,7 +5129,15 @@ this.newarray(DOUBLE_ARRAY); break; default : - this.anewarray(component); + if (component.isWildcard()) { + WildcardBinding wildcardBinding = (WildcardBinding) component; + TypeBinding[] bounds = new TypeBinding[wildcardBinding.otherBounds.length + 1]; + bounds[0] = wildcardBinding.bound; + System.arraycopy(wildcardBinding.otherBounds, 0, bounds, 1, wildcardBinding.otherBounds.length); + this.anewarray(Scope.greaterLowerBound(bounds)[0]); + } else { + this.anewarray(component); + } } } public void newJavaLangError() {