ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ForkJoinWorkerThread.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ForkJoinWorkerThread.java (file contents):
Revision 1.76 by jsr166, Fri Aug 25 00:58:48 2017 UTC vs.
Revision 1.77 by dl, Thu Dec 13 14:17:33 2018 UTC

# Line 207 | Line 207 | public class ForkJoinWorkerThread extend
207  
208          @Override // paranoically
209          public void setContextClassLoader(ClassLoader cl) {
210 <            throw new SecurityException("setContextClassLoader");
210 >            if (cl != null && !ClassLoader.getSystemClassLoader().equals(cl))
211 >                throw new SecurityException("setContextClassLoader");
212          }
213      }
214   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines