The attribute is not emitted.
relevant part from javap -v A\$1.class
for javac A.java
:
{
A$1(A);
descriptor: (LA;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
0: aload_0
1: aload_1
2: invokespecial #1 // Method A$InnerA."<init>":(LA;)V
5: return
LineNumberTable:
line 9: 0
}
relevant part from javap -v A\$1.class
for javac -parameters A.java
:
{
A$1(A);
descriptor: (LA;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
0: aload_0
1: aload_1
2: invokespecial #1 // Method A$InnerA."<init>":(LA;)V
5: return
LineNumberTable:
line 9: 0
MethodParameters:
Name Flags
this$0 final mandated
}
The attribute is not emitted.
relevant part from javap -v C\$InnerC.class
for javac C.java
:
{
C$InnerC(C, int);
descriptor: (LC;I)V
flags: (0x0000)
Code:
stack=1, locals=3, args_size=3
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
LineNumberTable:
line 4: 0
line 5: 4
}
relevant part from javap -v C\$InnerC.class
for javac -parameters C.java
:
{
C$InnerC(C, int);
descriptor: (LC;I)V
flags: (0x0000)
Code:
stack=1, locals=3, args_size=3
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
LineNumberTable:
line 4: 0
line 5: 4
MethodParameters:
Name Flags
this$0 final mandated
a
}
The attribute is not emitted.
relevant part from javap -v E.class
for javac E.java
:
public static E valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)LE;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
0: ldc #1 // class E
2: aload_0
3: invokestatic #12 // Method java/lang/Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
6: checkcast #1 // class E
9: areturn
LineNumberTable:
line 2: 0
relevant part from javap -v E.class
for javac -parameters E.java
:
public static E valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)LE;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
0: ldc #1 // class E
2: aload_0
3: invokestatic #12 // Method java/lang/Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
6: checkcast #1 // class E
9: areturn
LineNumberTable:
line 2: 0
MethodParameters:
Name Flags
name mandated
The attribute is present but the flags are missing.
relevant part from javap -v R.class
for javac R.java
:
public R(int, float);
descriptor: (IF)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
0: aload_0
1: invokespecial #1 // Method java/lang/Record."<init>":()V
4: aload_0
5: iload_1
6: putfield #7 // Field a:I
9: aload_0
10: fload_2
11: putfield #13 // Field b:F
14: return
LineNumberTable:
line 3: 0
line 5: 14
MethodParameters:
Name Flags
a
b