Skip to content

Instantly share code, notes, and snippets.

@Sciss
Created September 1, 2017 15:07
Show Gist options
  • Save Sciss/8488ab2491fe77c509fa23a0a83bdc8f to your computer and use it in GitHub Desktop.
Save Sciss/8488ab2491fe77c509fa23a0a83bdc8f to your computer and use it in GitHub Desktop.
Size 983 bytes
MD5 checksum 245f56b570e1460bd64b7d26b9a04f03
Compiled from "<console>"
public class $line3.$read$$iw$$iw$Test
minor version: 0
major version: 52
flags: ACC_PUBLIC, ACC_SUPER
Constant pool:
#1 = Utf8 $line3/$read$$iw$$iw$Test
#2 = Class #1 // $line3/$read$$iw$$iw$Test
#3 = Utf8 java/lang/Object
#4 = Class #3 // java/lang/Object
#5 = Utf8 <console>
#6 = Utf8 $line3/$read$$iw$
#7 = Class #6 // $line3/$read$$iw$
#8 = Utf8 $line3/$read
#9 = Class #8 // $line3/$read
#10 = Utf8 $iw$
#11 = Utf8 $line3/$read$$iw$$iw$
#12 = Class #11 // $line3/$read$$iw$$iw$
#13 = Utf8 Test
#14 = Utf8 data
#15 = Utf8 [B
#16 = Utf8 ()[B
#17 = NameAndType #14:#15 // data:[B
#18 = Fieldref #2.#17 // $line3/$read$$iw$$iw$Test.data:[B
#19 = Utf8 this
#20 = Utf8 L$line3/$read$$iw$$iw$Test;
#21 = Utf8 <init>
#22 = Utf8 ()V
#23 = NameAndType #21:#22 // "<init>":()V
#24 = Methodref #4.#23 // java/lang/Object."<init>":()V
#25 = Utf8 scala/Array$
#26 = Class #25 // scala/Array$
#27 = Utf8 MODULE$
#28 = Utf8 Lscala/Array$;
#29 = NameAndType #27:#28 // MODULE$:Lscala/Array$;
#30 = Fieldref #26.#29 // scala/Array$.MODULE$:Lscala/Array$;
#31 = Utf8 scala/Predef$
#32 = Class #31 // scala/Predef$
#33 = Utf8 Lscala/Predef$;
#34 = NameAndType #27:#33 // MODULE$:Lscala/Predef$;
#35 = Fieldref #32.#34 // scala/Predef$.MODULE$:Lscala/Predef$;
#36 = Utf8 wrapByteArray
#37 = Utf8 ([B)Lscala/collection/mutable/WrappedArray;
#38 = NameAndType #36:#37 // wrapByteArray:([B)Lscala/collection/mutable/WrappedArray;
#39 = Methodref #32.#38 // scala/Predef$.wrapByteArray:([B)Lscala/collection/mutable/WrappedArray;
#40 = Utf8 scala/reflect/ClassTag$
#41 = Class #40 // scala/reflect/ClassTag$
#42 = Utf8 Lscala/reflect/ClassTag$;
#43 = NameAndType #27:#42 // MODULE$:Lscala/reflect/ClassTag$;
#44 = Fieldref #41.#43 // scala/reflect/ClassTag$.MODULE$:Lscala/reflect/ClassTag$;
#45 = Utf8 Byte
#46 = Utf8 ()Lscala/reflect/ClassTag;
#47 = NameAndType #45:#46 // Byte:()Lscala/reflect/ClassTag;
#48 = Methodref #41.#47 // scala/reflect/ClassTag$.Byte:()Lscala/reflect/ClassTag;
#49 = Utf8 apply
#50 = Utf8 (Lscala/collection/Seq;Lscala/reflect/ClassTag;)Ljava/lang/Object;
#51 = NameAndType #49:#50 // apply:(Lscala/collection/Seq;Lscala/reflect/ClassTag;)Ljava/lang/Object;
#52 = Methodref #26.#51 // scala/Array$.apply:(Lscala/collection/Seq;Lscala/reflect/ClassTag;)Ljava/lang/Object;
#53 = Class #15 // "[B"
#54 = Utf8 Code
#55 = Utf8 LocalVariableTable
#56 = Utf8 LineNumberTable
#57 = Utf8 SourceFile
#58 = Utf8 InnerClasses
#59 = Utf8 ScalaInlineInfo
#60 = Utf8 Scala
{
public byte[] data();
descriptor: ()[B
flags: ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
0: aload_0
1: getfield #18 // Field data:[B
4: areturn
LocalVariableTable:
Start Length Slot Name Signature
0 5 0 this L$line3/$read$$iw$$iw$Test;
LineNumberTable:
line 11: 0
public $line3.$read$$iw$$iw$Test();
descriptor: ()V
flags: ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
0: aload_0
1: invokespecial #24 // Method java/lang/Object."<init>":()V
4: aload_0
5: getstatic #30 // Field scala/Array$.MODULE$:Lscala/Array$;
8: getstatic #35 // Field scala/Predef$.MODULE$:Lscala/Predef$;
11: iconst_4
12: newarray byte
14: dup
15: iconst_0
16: iconst_1
17: bastore
18: dup
19: iconst_1
20: iconst_2
21: bastore
22: dup
23: iconst_2
24: iconst_3
25: bastore
26: dup
27: iconst_3
28: iconst_4
29: bastore
30: invokevirtual #39 // Method scala/Predef$.wrapByteArray:([B)Lscala/collection/mutable/WrappedArray;
33: getstatic #44 // Field scala/reflect/ClassTag$.MODULE$:Lscala/reflect/ClassTag$;
36: invokevirtual #48 // Method scala/reflect/ClassTag$.Byte:()Lscala/reflect/ClassTag;
39: invokevirtual #52 // Method scala/Array$.apply:(Lscala/collection/Seq;Lscala/reflect/ClassTag;)Ljava/lang/Object;
42: checkcast #53 // class "[B"
45: putfield #18 // Field data:[B
48: return
LocalVariableTable:
Start Length Slot Name Signature
0 49 0 this L$line3/$read$$iw$$iw$Test;
LineNumberTable:
line 13: 0
line 11: 4
}
SourceFile: "<console>"
InnerClasses:
public static #10= #7 of #9; //$iw$=class $line3/$read$$iw$ of class $line3/$read
public static #10= #12 of #7; //$iw$=class $line3/$read$$iw$$iw$ of class $line3/$read$$iw$
public static #13= #2 of #12; //Test=class $line3/$read$$iw$$iw$Test of class $line3/$read$$iw$$iw$
Error: unknown attribute
ScalaInlineInfo: length = 0xE
01 00 00 02 00 15 00 16 00 00 0E 00 10 00
Error: unknown attribute
Scala: length = 0x0
class Test { val data = Array[Byte](1, 2, 3, 4) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment