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

ArrayList.remove documentation does not specify the message when an exception is

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html#remove-int-

      A DESCRIPTION OF THE PROBLEM :
      Documentation should specify an exception message. The following program shows “-1” as exception message:

      import java.util.ArrayList;
      public class A {
          public static void main(String[] args) {
              new ArrayList().remove(-1);
          }
      }


        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: