< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/java/DynamicNewArrayNode.java

Print this page
rev 52509 : [mq]: graal2

*** 104,114 **** // Can't fold for AOT, because the resulting NewArrayNode will be missing its // ResolveConstantNode for the array class. return this; } ResolvedJavaType type = tool.getConstantReflection().asJavaType(elementType.asConstant()); ! if (type != null && !throwsIllegalArgumentException(type)) { return createNewArrayNode(type); } } return this; } --- 104,114 ---- // Can't fold for AOT, because the resulting NewArrayNode will be missing its // ResolveConstantNode for the array class. return this; } ResolvedJavaType type = tool.getConstantReflection().asJavaType(elementType.asConstant()); ! if (type != null && type.getArrayClass() != null && !throwsIllegalArgumentException(type)) { return createNewArrayNode(type); } } return this; }
< prev index next >