# HG changeset patch # User Gilles Duboscq # Date 1338302960 -7200 # Node ID a899a40a7ddf107ac7a5e2b64e64050dc95d89aa # Parent 56f4afcf71f7378844fd0b3d6f35c4e3c730085f getClass returns a non-null result diff -r 56f4afcf71f7 -r a899a40a7ddf graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/ri/HotSpotRuntime.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/ri/HotSpotRuntime.java Fri May 25 13:22:45 2012 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/ri/HotSpotRuntime.java Tue May 29 16:49:20 2012 +0200 @@ -482,7 +482,7 @@ StructuredGraph graph = new StructuredGraph(); LocalNode receiver = graph.unique(new LocalNode(0, StampFactory.objectNonNull())); SafeReadNode klassOop = safeReadHub(graph, receiver, StructuredGraph.INVALID_GRAPH_ID); - Stamp resultStamp = StampFactory.declared(getType(Class.class)); + Stamp resultStamp = StampFactory.declaredNonNull(getType(Class.class)); FloatingReadNode result = graph.unique(new FloatingReadNode(klassOop, LocationNode.create(LocationNode.FINAL_LOCATION, CiKind.Object, config.classMirrorOffset, graph), null, resultStamp)); ReturnNode ret = graph.add(new ReturnNode(result)); graph.start().setNext(klassOop);