Eclipse Javadoc 错误/异常
我正在尝试将 javadoc 附加到 Eclipse 中的 Guava。我将 javadoc 位置设置为 http://guava-libraries.googlecode.com/svn/ trunk/javadoc/,验证通过。当我在 Guava 类上按 F2(force show javadoc) 时,出现以下错误。我是不是做错了什么?
eclipse.buildId=M20110909-1335 java.version=1.6.0_29 java.vendor=太阳微系统公司 BootLoader 常量:OS=win32、ARCH=x86_64、WS=win32、NL=en_US 命令行参数:-os win32 -ws win32 -arch x86_64
错误 2011 年 10 月 27 日星期四 14:46:53(太平洋夏令时) 字符串索引超出范围:-10
java.lang.StringIndexOutOfBoundsException:字符串索引超出范围:-10 在 java.lang.String.checkBounds(String.java:397) 在 java.lang.String.(String.java:442) 在 org.eclipse.jdt.internal.core.JavaElement.getURLContents(JavaElement.java:786) 在 org.eclipse.jdt.internal.core.BinaryType.getJavadocContents(BinaryType.java:1037) 在 org.eclipse.jdt.internal.core.BinaryType.getAttachedJavadoc(BinaryType.java:995) 在 org.eclipse.jdt.internal.ui.text.javadoc.JavadocContentAccess2.getHTMLContent(JavadocContentAccess2.java:462) 在 org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo(JavadocHover.java:621) 在 org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.internalGetHoverInfo(JavadocHover.java:567) 在 org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo2(JavadocHover.java:559) 在 org.eclipse.jdt.internal.ui.text.java.hover.JavaTypeHover.getHoverInfo2(JavaTypeHover.java:73) 在 org.eclipse.jdt.internal.ui.text.java.hover.JavaInformationProvider.getInformation2(JavaInformationProvider.java:67) 在 org.eclipse.jface.text.information.InformationPresenter.computeInformation(InformationPresenter.java:344) 在 org.eclipse.jface.text.AbstractInformationControlManager.doShowInformation(AbstractInformationControlManager.java:1131) 在 org.eclipse.jface.text.AbstractInformationControlManager.showInformation(AbstractInformationControlManager.java:1121) 在 org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:941) 在 org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1534) 在 org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer.doOperation(JavaSourceViewer.java:191) 在 org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:200) 在 org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:128) 在 org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) 在 org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:126) 在 org.eclipse.ui.texteditor.AbstractTextEditor$InformationDispatchAction.run(AbstractTextEditor.java:1904) 在 org.eclipse.jface.action.Action.runWithEvent(Action.java:498) 在 org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185) 在 org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109) 在 org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) 在 org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) 在 org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) 在 org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468) 在 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) 在 org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123) 在 org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在 org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262) 在 org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052) 在 org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) 在 org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062) 在 org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104) 在 org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100) 在 org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1809) 在 org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4892) 在 org.eclipse.swt.widgets.Control.windowProc(Control.java:4560) 在 org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341) 在 org.eclipse.swt.widgets.Display.windowProc(Display.java:4985) 在 org.eclipse.swt.internal.win32.OS.DispatchMessageW(本机方法) 在 org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2531) 在 org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752) 在 org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) 在 org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) 在 org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) 在 org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) 在 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) 在 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在 java.lang.reflect.Method.invoke(Method.java:597) 在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) 在 org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) 在 org.eclipse.equinox.launcher.Main.run(Main.java:1410) 在 org.eclipse.equinox.launcher.Main.main(Main.java:1386)
I am trying to attach the javadoc to Guava in Eclipse. I set the javadoc location to http://guava-libraries.googlecode.com/svn/trunk/javadoc/, the validation passes. When I press F2(force show javadoc) on a Guava class, I get the error below. I am I doing something wrong?
eclipse.buildId=M20110909-1335
java.version=1.6.0_29
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64
Error
Thu Oct 27 14:46:53 PDT 2011
String index out of range: -10
java.lang.StringIndexOutOfBoundsException: String index out of range: -10
at 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.jdt.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.javaeditor.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.run(TextOperationAction.java:128)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at 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.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
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)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
at 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(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
at org.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(Control.java:4560)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
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)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at 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(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过删除库并将其重新添加来修复它。我应该首先这样做,但我将其间隔开。编辑:现在它又坏了。我不知道发生了什么事。
I fixed it by removing the library and adding it back in. I should have done this in the first place, but I spaced it. EDIT: And now it's broken again. I don't know what is happening.