diff --git a/janino/src/main/java/org/codehaus/janino/UnitCompiler.java b/janino/src/main/java/org/codehaus/janino/UnitCompiler.java index 1034124d4..6d99b1adc 100644 --- a/janino/src/main/java/org/codehaus/janino/UnitCompiler.java +++ b/janino/src/main/java/org/codehaus/janino/UnitCompiler.java @@ -10875,6 +10875,8 @@ interface Compilable { void compile() throws CompileException; } } if (this.isWideningReferenceConvertible(boxedType, targetType)) { this.boxingConversion(locatable, sourceType, boxedType); + this.getCodeContext().popOperand(boxedType.getDescriptor()); + this.getCodeContext().pushOperand(targetType.getDescriptor()); return true; } }