andersonvom

PowerMock listOf() bug - bytecode

Nov 16th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. // ================com/example/FooTest.class =================
  2. // class version 50.0 (50)
  3. // access flags 0x31
  4. public final class com/example/FooTest {
  5.  
  6.  
  7. @Lorg/junit/runner/RunWith;(value=org.powermock.modules.junit4.PowerMockRunner.class)
  8.  
  9. // access flags 0x11
  10. public final shouldWork()V
  11. @Lorg/junit/Test;()
  12. L0
  13. LINENUMBER 13 L0
  14. L1
  15. INVOKESTATIC kotlin/collections/CollectionsKt.emptyList ()Ljava/util/List;
  16. L2
  17. LINENUMBER 13 L2
  18. ASTORE 1
  19. L3
  20. LINENUMBER 14 L3
  21. NEW com/example/Foo
  22. DUP
  23. ALOAD 1
  24. INVOKESPECIAL com/example/Foo.<init> (Ljava/util/List;)V
  25. POP
  26. L4
  27. LINENUMBER 17 L4
  28. NEW com/example/Foo
  29. DUP
  30. INVOKESTATIC kotlin/collections/CollectionsKt.emptyList ()Ljava/util/List;
  31. INVOKESPECIAL com/example/Foo.<init> (Ljava/util/List;)V
  32. POP
  33. L5
  34. LINENUMBER 20 L5
  35. NEW com/example/Foo
  36. DUP
  37. ASTORE 3
  38. ASTORE 2
  39. L6
  40. INVOKESTATIC kotlin/collections/CollectionsKt.emptyList ()Ljava/util/List;
  41. L7
  42. ASTORE 4
  43. ALOAD 3
  44. ALOAD 4
  45. L8
  46. LINENUMBER 20 L8
  47. INVOKESPECIAL com/example/Foo.<init> (Ljava/util/List;)V
  48. L9
  49. LINENUMBER 21 L9
  50. RETURN
  51. L10
  52. LOCALVARIABLE bar Ljava/util/List; L3 L10 1
  53. LOCALVARIABLE this Lcom/example/FooTest; L0 L10 0
  54. MAXSTACK = 3
  55. MAXLOCALS = 5
  56.  
  57. // access flags 0x1
  58. public <init>()V
  59. L0
  60. LINENUMBER 9 L0
  61. ALOAD 0
  62. INVOKESPECIAL java/lang/Object.<init> ()V
  63. RETURN
  64. L1
  65. LOCALVARIABLE this Lcom/example/FooTest; L0 L1 0
  66. MAXSTACK = 1
  67. MAXLOCALS = 1
  68.  
  69. @Lkotlin/Metadata;(mv={1, 1, 7}, bv={1, 0, 2}, k=1, d1={"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010\u0002\n\u0000\u0008\u0007\u0018\u00002\u00020\u0001B\u0005\u00a2\u0006\u0002\u0010\u0002J\u0008\u0010\u0003\u001a\u00020\u0004H\u0007\u00a8\u0006\u0005"}, d2={"Lcom/example/FooTest;", "", "()V", "shouldWork", "", "test sources for module foo"})
  70. // compiled from: FooTest.kt
  71. // debug info: SMAP
  72. FooTest.kt
  73. Kotlin
  74. *S Kotlin
  75. *F
  76. + 1 FooTest.kt
  77. com/example/FooTest
  78. *L
  79. 1#1,22:1
  80. *E
  81.  
  82. }
Advertisement
Add Comment
Please, Sign In to add comment