am d5c00014: Merge "Fix dasm to set ACC_CONSTRUCTOR on <clinit>"
* commit 'd5c0001491f94321d1d4fe81e19fa6c96a9bd9de':
Fix dasm to set ACC_CONSTRUCTOR on <clinit>
diff --git a/tools/dasm/src/dasm/DAsm.java b/tools/dasm/src/dasm/DAsm.java
index d298689..72436ac 100644
--- a/tools/dasm/src/dasm/DAsm.java
+++ b/tools/dasm/src/dasm/DAsm.java
@@ -403,8 +403,11 @@
regs_count = 1;
method_nat = new CstNat(new CstString(name), new CstString(descriptor));
- if (method_nat.isClassInit()) access |= AccessFlags.ACC_STATIC;
- if (method_nat.isInstanceInit()) access |= AccessFlags.ACC_CONSTRUCTOR;
+ if (method_nat.isClassInit()) {
+ access |= (AccessFlags.ACC_CONSTRUCTOR | AccessFlags.ACC_STATIC);
+ } else if (method_nat.isInstanceInit()) {
+ access |= AccessFlags.ACC_CONSTRUCTOR;
+ }
method_acc = access;
}