2011-10-27 36 views
1

我想在Eclipse中将javadoc附加到番石榴。我将javadoc位置设置为http://guava-libraries.googlecode.com/svn/trunk/javadoc/,验证通过。当我在Guava类上按F2(强制显示javadoc)时,出现下面的错误。我是我做错了什么?Eclipse Javadoc错误/异常

eclipse.buildId = M20110909-1335 java.version = 1.6.0_29 java.vendor = Sun微系统公司的BootLoader 常数:OS = Win32中,ARCH = x86_64的,WS = Win32中,NL = EN_US 命令 - 行参数:-OS的win32 -ws的win32 -arch x86_64的

错误 周四年10月27 14点46分53秒PDT 2011 字符串索引超出范围:-10

java.lang.StringIndexOutOfBoundsException:字符串索引超出范围:-10 位于java.lang.String.checkBounds(String.java:397) at java.lang.String。(String.java:442) at org.eclipse.jdt.internal.core.JavaElement.getURLContents(JavaElement.java:786) at org.eclipse.jdt.internal.core.BinaryType .getJavadocContents(BinaryType.java:1037) at org.eclipse.jdt.internal.core.BinaryType.getAttachedJavadoc(BinaryType.java:995) at org.eclipse.jdt.internal.ui.text.javadoc.JavadocContentAccess2.getHTMLContent (JavadocContentAccess2.java:462) at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo(JavadocHover.java:621) at org.eclipse.jdt.internal.ui.text.java .hover.JavadocHover.internalGetHoverInfo(JavadocHover.java:567) at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo2(JavadocHover.java:559) at org.eclipse.j dt.internal.ui.text.java.hover.JavaTypeHover.getHoverInfo2(JavaTypeHover.java:73) at org.eclipse.jdt.internal.ui.text.java.hover.JavaInformationProvider.getInformation2(JavaInformationProvider.java:67) at org.eclipse.jface.text.information.InformationPresenter.computeInformation(InformationPresenter.java:344) at org.eclipse.jface.text.AbstractInformationControlManager.doShowInformation(AbstractInformationControlManager.java:1131) at org.eclipse.jface。 text.AbstractInformationControlManager.showInformation(AbstractInformationControlManager.java:1121) at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:941) at org.eclipse.jface.text.source.projection.ProjectionViewer。 doOperation(ProjectionViewer.java:1534) at org.eclipse.jdt.internal.ui.j avaeditor.JavaSourceViewer.doOperation(JavaSourceViewer.java:191) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor $ AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:200) at org.eclipse.ui.texteditor.TextOperationAction $ 1在运行org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:126) at org.eclipse.ui.texteditor.AbstractTextEditor $ InformationDispatchAction.run(AbstractTextEditor.java:1904) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.ui.commands .ActionHandler.execute(ActionHandler.java:185) at org.eclipse.ui.internal.handlers.LegacyHandlerWrappe在org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)处使用org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) 来运行r.execute(LegacyHandlerWrapper.java:109) 。 at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468) at org.eclipse。 ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard。的java:786) 在org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885) 在org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567) 在org.eclipse.ui.internal.keys.WorkbenchKeyboard.access $ 3(WorkbenchKeyboard.java:508) at org.eclipse.ui.internal.keys.WorkbenchKeyboard $ KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123) at org.eclipse .swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262) at org.eclipse.swt.widgets.Widget.sendEvent(Widget .java:1052) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) at org.eclipse.swt.widgets.Widget.sendEvent(Wi dget.java:1062) 在org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104) 在org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100) 在有机eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1809) at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4892) at org.eclipse.swt.widgets.Control.windowProc(在org.eclipse.swt.widgets.Display.windowProc(Display.java:4985) 处。 eclipse.swt.internal.win32.OS.DispatchMessageW(本机方法) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2531) at org.eclipse.swt.widgets.Display.readAndDispatch (Display.java:3752) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal。 Workbench.access $ 4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench $ 7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm。的java:332) 在org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) 在org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 在org.eclipse.ui。 internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org .eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0 (本机方法) 在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在java.lang.reflect.Method.invoke(方法。 java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)org.eclipse.equinox.launcher.Main.run(Main.java:1410) (org.eclipse.equinox.launcher)上的org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) ()。 Main.main(Main.java:1386)

回答

0

我通过删除库并重新添加它来修复它。我应该首先完成这项工作,但是我将它分开了。编辑:现在它又破了。我不知道发生了什么。

+1

这里一样的东西。也许你应该删除“回答”检查... –