When the following class is compiled using javac, class$java$math$BigDecimalField field is generated. According to the Field.isSynthetic () method, this field is not synthetic.
public class Synthetic {
public static void main (String args []) {
System.out.println (java.math.BigDecimal.class);
}
}
The same problem occurs in case of fields of type this$0 that are generated for inner classes. They are not considered to be synthetic again.
I used javac and fastjavac in this case to compile a class. That's the reason why I fill this bug against JPDA, not javac. However, I am not sure if the issue is directly related to JPDA or not ...
public class Synthetic {
public static void main (String args []) {
System.out.println (java.math.BigDecimal.class);
}
}
The same problem occurs in case of fields of type this$0 that are generated for inner classes. They are not considered to be synthetic again.
I used javac and fastjavac in this case to compile a class. That's the reason why I fill this bug against JPDA, not javac. However, I am not sure if the issue is directly related to JPDA or not ...
- duplicates
-
JDK-4415260 JDI: TypeComponent.isSynthetic() lies about synthetic field
-
- Closed
-