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

Improve Unsupported exception messages for java.util.AbstractList

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 19
    • core-libs
    • None

    Description

      Various implementations of java.util.List extend AbstractList. AbstractList provides useful methods for java.util.List and placeholders that throw UnsupportedOperationException.
      When unsupported methods are called, the exception message is empty.
      The analysis of those exceptions would be improved if the message would identify the method being invoked and the class implementing the List.
      This information can be gleaned from the stacktrace and the source code but understanding and resolution would be quicker with a cogent message.

      Attachments

        Issue Links

          Activity

            People

              smarks Stuart Marks
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: