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

FilerException(null) doesn't throw NPE

XMLWordPrintable

      javax.annotation.processing.FilerException constructor doesn't throw NullPointerException if the string parameter is null.

      The package javax.annotation.processing description contains following:
      ---
      Unless otherwise specified, methods in this package should be expected to throw a NullPointerException if given a null argument.
      ---

      There are no description in the class FilerException whether NPE sould be thrown or not. In that case it seems right way is to throw NPE.

            darcy Joe Darcy
            ydanilev Yury Danilevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: