Skip to content

Commit afe8f3d

Browse files
committed
Do not expose the ServicePermission to users of URL
An important doPriv was removed which protected callers of URL from the SerivcePermissin check to get the handler service.
1 parent 163cb3a commit afe8f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/url/URLStreamHandlerProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ synchronized void dispose() {
235235
@Override
236236
public synchronized URLStreamHandlerService get() {
237237
if (service == null && !disposed) {
238-
service = bundleContext.getService(reference);
238+
service = URLStreamHandlerFactoryImpl.secureAction.getService(reference, bundleContext);
239239
}
240240
return service;
241241
}

0 commit comments

Comments
 (0)