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

Change parameter names in some IOException subclasses

XMLWordPrintable

    • b59

        Usually exceptions have constructors with parameter of type String as a "detail massage". Sometimes these parameters are misnamed, e.g.:

            /**
             * Constructs a new {@code ProtocolException} with the
             * specified detail message.
             *
             * @param host the detail message.
             */
            public ProtocolException(String host) {
                super(host);
            }

        It can lead to a confusion. Users can be affected by using autocompletion feature or just by reading constructors' definitions. This inconsistency is visible from the javadoc level as well.

              prappo Pavel Rappo (Inactive)
              prappo Pavel Rappo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: