You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An attempt to call com.google.common.reflect.ClassPath#from ends with NullPointerException on IBM WebSphere 8.5.5.5. The following snippet from com.google.common.reflect.ClassPath#getClassPathEntries causes issues:
URLClassLoaderurlClassLoader = (URLClassLoader) classloader;
for (URLentry : urlClassLoader.getURLs()) {
getURLs() on com.ibm.ws.bootstrap.ExtClassLoader returns null:
As Louis points out, URLClassLoader.getURLs() doesn't say anything about returning null. Since _getURLs() isn't part of the public URLClassLoader API, we couldn't call it anyways.
Summary: Problem/Solution
We cannot rely on `URLClassLoader#getURLs` to not return a null instance.
Update the code to protect against this possibility.
See: google/guava#2239
Fixes issue #695.
JIRA Issues: CSL-6530
Differential Revision: https://phabricator.twitter.biz/D181152
An attempt to call com.google.common.reflect.ClassPath#from ends with NullPointerException on IBM WebSphere 8.5.5.5. The following snippet from com.google.common.reflect.ClassPath#getClassPathEntries causes issues:
getURLs() on com.ibm.ws.bootstrap.ExtClassLoader returns null:
It looks like IBM made this on purpose, so I guess reporting to Guava is more appropriate here.
The text was updated successfully, but these errors were encountered: