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

InvocationTargetException field named target is not declared final

XMLWordPrintable

      There is a publication issue because the field of InvocationTargetException is not declared final

      public class InvocationTargetException extends ReflectiveOperationException {
          /**
           * Use serialVersionUID from JDK 1.1.X for interoperability
           */
          @java.io.Serial
          private static final long serialVersionUID = 4085088731926701167L;

          /**
           * This field holds the target if the
           * InvocationTargetException(Throwable target) constructor was
           * used to instantiate the object
           *
           * @serial
           *
           */
          private Throwable target; // <--- oops

            darcy Joe Darcy
            forax RĂ©mi Forax
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: