diff options
Diffstat (limited to 'java')
-rw-r--r-- | java/com/google/turbine/binder/bytecode/BytecodeBoundClass.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/com/google/turbine/binder/bytecode/BytecodeBoundClass.java b/java/com/google/turbine/binder/bytecode/BytecodeBoundClass.java index d337181..8939780 100644 --- a/java/com/google/turbine/binder/bytecode/BytecodeBoundClass.java +++ b/java/com/google/turbine/binder/bytecode/BytecodeBoundClass.java @@ -379,6 +379,10 @@ public class BytecodeBoundClass implements TypeBoundClass { ImmutableList.Builder<MethodInfo> methods = ImmutableList.builder(); int idx = 0; for (ClassFile.MethodInfo m : classFile.get().methods()) { + if (m.name().equals("<clinit>")) { + // Don't bother reading class initializers, which we don't need + continue; + } methods.add(bindMethod(idx++, m)); } return methods.build(); |