Index: 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 --- CodeStream.java 26 May 2005 21:02:13 -0000 1.108 +++ CodeStream.java 9 Jun 2005 23:59:23 -0000 @@ -5129,7 +5129,17 @@ this.newarray(DOUBLE_ARRAY); break; default : - this.anewarray(component); + if (component.isWildcard()) { + WildcardBinding wildcardBinding = (WildcardBinding) component; + final TypeBinding[] wildcardBounds=wildcardBinding.otherBounds; + final int boundsLength=wildcardBounds.length; + TypeBinding[] bounds = new TypeBinding[boundsLength + 1]; + bounds[0] = wildcardBinding.bound; + System.arraycopy(wildcardBounds, 0, bounds, 1, boundsLength); + this.anewarray(Scope.greaterLowerBound(bounds)[0]); + } else { + this.anewarray(component); + } } } public void newJavaLangError() {