equal
deleted
inserted
replaced
2336 String name = this.getName(); |
2336 String name = this.getName(); |
2337 int i = name.lastIndexOf('.'); |
2337 int i = name.lastIndexOf('.'); |
2338 if (i != -1) { |
2338 if (i != -1) { |
2339 // skip the package access check on a proxy class in default proxy package |
2339 // skip the package access check on a proxy class in default proxy package |
2340 String pkg = name.substring(0, i); |
2340 String pkg = name.substring(0, i); |
2341 if (!Proxy.isProxyClass(this) || !pkg.equals(ReflectUtil.PROXY_PACKAGE)) { |
2341 if (!Proxy.isProxyClass(this) || ReflectUtil.isNonPublicProxyClass(this)) { |
2342 s.checkPackageAccess(pkg); |
2342 s.checkPackageAccess(pkg); |
2343 } |
2343 } |
2344 } |
2344 } |
2345 } |
2345 } |
2346 // check package access on the proxy interfaces |
2346 // check package access on the proxy interfaces |