Skip to content

Commit 8c44bf9

Browse files
author
jossc
committed
僕が死のうと思ったのは 誕生日に杏の花が咲いたから
1 parent ab10a0d commit 8c44bf9

7 files changed

Lines changed: 80 additions & 3 deletions

File tree

src/main/java/com/evething/TestOne.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.evething;
22

33
/**
4-
* @ClassName TestOne
4+
* @ClassName TestCode
55
* @Despacito TODO
66
* @Author chenzhuo
77
* @Version 1.0

src/main/java/com/jdk8/lmb/TestOne.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import java.util.function.Consumer;
66

77
/**
8-
* @ClassName TestOne
8+
* @ClassName TestCode
99
* @Despacito TODO
1010
* @Author chenzhuo
1111
* @Version 1.0
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.jvm.bytecode;
2+
3+
import java.lang.invoke.LambdaMetafactory;
4+
5+
/**
6+
* @ClassName LambdaMetafactoryTest
7+
* @Author chenzhuo
8+
* @Version 1.0
9+
* @Date 2019-07-28 22:14
10+
**/
11+
public class LambdaMetafactoryTest {
12+
public static void main(String[] args) {
13+
}
14+
}

src/main/java/com/jvm/bytecode/Test1.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public Test1() {
3333
*/
3434
public static void main(String[] args) {
3535
Test1 test1 = new Test1();
36+
Thread t;
3637

3738
}
3839
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.jvm.bytecode;
2+
3+
/**
4+
* @ClassName TestCode
5+
* @Author chenzhuo
6+
* @Version 1.0
7+
* @Date 2019-07-31 22:49
8+
**/
9+
public class TestCode {
10+
public int a = 3;
11+
12+
static Integer si = 6;
13+
14+
String s = "Hello word";
15+
16+
public static void main(String[] args) {
17+
TestCode testCode = new TestCode();
18+
testCode.a = 8;
19+
si = 10;
20+
21+
}
22+
23+
private void test() {
24+
this.a = a;
25+
}
26+
27+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package com.jvm.bytecode;
2+
3+
/**
4+
* @ClassName TestLambda
5+
* @Author chenzhuo
6+
* @Version 1.0
7+
* @Date 2019-07-28 22:01
8+
* private static void lambda$main$0();
9+
* descriptor: ()V
10+
* flags: ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
11+
* Code:
12+
* stack=2, locals=0, args_size=0
13+
* 0: getstatic #4 // Field java/lang/System.out:Ljava/io/PrintStream;
14+
* 3: ldc #5 // String hello, lambda
15+
* 5: invokevirtual #6 // Method java/io/PrintStream.println:(Ljava/lang/String;)V
16+
* 8: return
17+
* LineNumberTable:
18+
* line 13: 0
19+
* line 14: 8
20+
*
21+
* private static void lambda$main$0() {
22+
* System.out.println("hello, lambda");
23+
* }
24+
*
25+
**/
26+
public class TestLambda {
27+
28+
public static void main(String[] args) {
29+
30+
Runnable r = ()->{
31+
System.out.println("hello, lambda");
32+
};
33+
r.run();
34+
}
35+
}

src/main/java/com/jvm/classloader/relyclass/TestOne.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.jvm.classloader.relyclass;
22

33
/**
4-
* @ClassName TestOne
4+
* @ClassName TestCode
55
* @Author chenzhuo
66
* @Version 1.0
77
* @Date 2019-06-10 21:08

0 commit comments

Comments
 (0)