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

Clarify exception thrown by ParameterizedTypeImpl.validateConstructorArguments()

XMLWordPrintable

        A DESCRIPTION OF THE REQUEST :
        sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments() throws MalformedParameterizedTypeException.

        Currently the exception message is empty.

        JUSTIFICATION :
        MalformedParameterizedTypeException with an empty description is vague, and could be caused by many different factors.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Methods throwing MalformedParameterizedTypeException, such as ParameterizedTypeImpl.validateConstructorArguments() should always a detailed message that explains what went wrong.

        The detail message should include:

        - The class being invoked.
        - The formal class type parameters.
        - The actual type parameters passed in.

              darcy Joe Darcy
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: