Skip to content

Commit 76c5710

Browse files
committed
[GR-70350] Implement isClassInitializer for BaseLayerMethod
1 parent 501a82b commit 76c5710

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/meta/BaseLayerMethod.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
* method, using the information from the base layer.
5252
*/
5353
public class BaseLayerMethod extends BaseLayerElement implements ResolvedJavaMethod {
54+
private static final String CLINIT = "<clinit>";
55+
5456
private final int id;
5557
private final ResolvedJavaType declaringClass;
5658
private final String name;
@@ -153,7 +155,7 @@ public boolean isDeclared() {
153155

154156
@Override
155157
public boolean isClassInitializer() {
156-
throw unimplemented();
158+
return name.equals(CLINIT);
157159
}
158160

159161
@Override

0 commit comments

Comments
 (0)