Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4527071

JPDA: Field.isSynthetic () always returns false.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.3.1
    • core-svc
    • None
    • x86
    • windows_2000

      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 ...

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: