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

Clarify exception thrown by ParameterizedTypeImpl.validateConstructorArguments()

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 13
    • Component/s: core-libs

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: