code_junkie

Static initializers in bcel

Nov 12th, 2011
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // Field descriptor #8 [I
  2. private static int[] a;
  3.  
  4. static {};
  5. 0 bipush 10
  6. 2 multianewarray int[] [9]
  7. 6 putstatic Output.a : int[] [11]
  8. 9 return
  9.  
  10. public static void {}();
  11. 0 bipush 10
  12. 2 multianewarray int[] [9]
  13. 6 putstatic Output.a : int[] [11]
  14. 9 return
  15.  
  16. MethodGen method = new MethodGen(Constants.ACC_STATIC,
  17. Type.VOID,
  18. new Type[] { }, new String[] { }, "<clinit>",
  19. cg.getClassName(), il, cg.getConstantPool());
Add Comment
Please, Sign In to add comment