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

(doc) Errata in javadoc for ObjectInputFilter Example

XMLWordPrintable


      The example code in ObjectInputFilter prose does not match the code
      with respect to the bootstrap class loader:

      "Example, to create a filter that will allow any class loaded from the platform classloader.
           ObjectInputFilter f = allowFilter(cl -> cl.getClassLoader() == ClassLoader.getPlatformClassLoader()
                                                || cl.getClassLoader() == null, Status.UNDECIDED);
      "

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: