parser seems to work kind of maybe

This commit is contained in:
nora 2021-08-19 22:07:48 +02:00
parent 5d435a208c
commit 10f964a8f5
4 changed files with 45 additions and 27 deletions

View file

@ -25,7 +25,7 @@ Cp: [
1: {
tag: 0a (10, MethodRef)
class_index: 00 02 (2)
name_and_type_index: 00 03 (2)
name_and_type_index: 00 03
}
2: {
tag: 07 (7, Class)
@ -34,7 +34,7 @@ Cp: [
3: {
tag: 0c (12, NameAndType)
name_index: 00 05 (05)
descriptor_index: 00 06 (6)
descriptor_index: 00 06
}
4: {
tag: 01 (1, Utf8)

11
testdata/Test2.java vendored Normal file
View file

@ -0,0 +1,11 @@
class Test2 {
public static void main(String[] args) {
int i = 0;
i++;
print(i);
}
static void print(int i) {
System.out.println(i);
}
}