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

(ann) AnnotationFormatError if "default" Class type not found

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      Description

      If an annotation type's default is not found, it is treated as an error.

      This is related to the following code in java.lang.reflect.Method:

      705 if (result instanceof sun.reflect.annotation.ExceptionProxy)
      706 throw new AnnotationFormatError("Invalid default: " + this);

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              gafter Neal Gafter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: