1.1 --- a/src/share/classes/com/sun/tools/javac/jvm/Code.java Thu Apr 28 15:05:36 2011 -0700 1.2 +++ b/src/share/classes/com/sun/tools/javac/jvm/Code.java Fri Apr 29 16:05:02 2011 +0100 1.3 @@ -479,7 +479,12 @@ 1.4 state.pop(1);// index 1.5 Type a = state.stack[state.stacksize-1]; 1.6 state.pop(1); 1.7 - state.push(types.erasure(types.elemtype(a))); } 1.8 + //sometimes 'null type' is treated as a one-dimensional array type 1.9 + //see Gen.visitLiteral - we should handle this case accordingly 1.10 + Type stackType = a.tag == BOT ? 1.11 + syms.objectType : 1.12 + types.erasure(types.elemtype(a)); 1.13 + state.push(stackType); } 1.14 break; 1.15 case goto_: 1.16 markDead();