equal
deleted
inserted
replaced
39 import java.io.IOException; |
39 import java.io.IOException; |
40 import java.io.InputStream; |
40 import java.io.InputStream; |
41 import java.io.ObjectInputStream; |
41 import java.io.ObjectInputStream; |
42 import java.io.ObjectStreamClass; |
42 import java.io.ObjectStreamClass; |
43 import java.io.StreamCorruptedException; |
43 import java.io.StreamCorruptedException; |
|
44 |
|
45 import java.lang.reflect.Modifier; |
44 |
46 |
45 import java.net.URL; |
47 import java.net.URL; |
46 |
48 |
47 import java.security.AccessController; |
49 import java.security.AccessController; |
48 import java.security.PrivilegedAction; |
50 import java.security.PrivilegedAction; |
220 throw serex; |
222 throw serex; |
221 } |
223 } |
222 throw ex; |
224 throw ex; |
223 } |
225 } |
224 |
226 |
|
227 if (!Modifier.isPublic(cl.getModifiers())) { |
|
228 throw new ClassNotFoundException("" + cl + " : no public access"); |
|
229 } |
|
230 |
225 /* |
231 /* |
226 * Try to instantiate the class. |
232 * Try to instantiate the class. |
227 */ |
233 */ |
228 |
234 |
229 try { |
235 try { |