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

default constructor should be synthetic?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.4.0
    • specification
    • None
    • 1.6
    • generic
    • linux_2.4, solaris_7

      JVM spec 2nd edition 4.7.6 says that a class member that does not appear
      in the source must be marked with the synthetic attribute.

      Neither the old nor the new compiler do this for the static initialization
      method nor for the compiler-provided default constructor. However, the
      maintainer of the Language spec says that these shouldn't be marked
      synthetic.

      Which is it? If the compiler is wrong, it needs to be fixed. If the spec
      is wrong, it needs to be fixed.

      Bug 4304047 is pending the resolution of this issue.

      neal.gafter@Eng 2001-02-27

            abuckley Alex Buckley
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: