src/jdk/nashorn/internal/codegen/CodeGenerator.java

Print this page

        

*** 4740,4750 **** * scope, they take precedence, but if they aren't, then they resolve to the compile-time location property. * @param propertyValue the actual value of the property */ private void replaceCompileTimeProperty(final Object propertyValue) { assert method.peekType().isObject(); ! if(propertyValue instanceof String) { method.load((String)propertyValue); } else if(propertyValue instanceof Integer) { method.load(((Integer)propertyValue).intValue()); method.convert(Type.OBJECT); } else { --- 4740,4750 ---- * scope, they take precedence, but if they aren't, then they resolve to the compile-time location property. * @param propertyValue the actual value of the property */ private void replaceCompileTimeProperty(final Object propertyValue) { assert method.peekType().isObject(); ! if(propertyValue instanceof String || propertyValue == null) { method.load((String)propertyValue); } else if(propertyValue instanceof Integer) { method.load(((Integer)propertyValue).intValue()); method.convert(Type.OBJECT); } else {