当我尝试使用
打开内部网络浏览器时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"
知道我为什么会收到这个错误吗?搜索错误产生了一些提示。对其进行调试显示,错误表示通过反射访问私有方法。