打开内部浏览器时抛出异常

时间:2013-01-11 17:36:17

标签: eclipse swt jface

当我尝试使用

打开内部网络浏览器时
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"

知道我为什么会收到这个错误吗?搜索错误产生了一些提示。对其进行调试显示,错误表示通过反射访问私有方法。

0 个答案:

没有答案