当我尝试使用打开内部网络浏览器时
IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
我收到此错误:
Unable to instantiate browser supportStatus ERROR:
org.eclipse.equinox.registry code=1 Plug-in "XXXXX" was unable to instantiate
class "org.eclipse.ui.internal.browser.WorkbenchBrowserSupport".
java.lang.IllegalAccessException:
Class org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI can not access a member of class org.eclipse.ui.internal.browser.WorkbenchBrowserSupport with modifiers "private"
知道为什么我会收到此错误吗?搜索错误产生的提示很少。调试它表明,正如错误所说,私有方法是通过反射访问的。