What steps will reproduce the problem?
1. Create new Interface in Eclipse:
public interface TestInterface {
/**
* @rule The rule
* @return String
* @thematicgrid Getting Operations / Getter
*/
public String getString();
}
2. Open the interface with iDocIt!.
What is the expected output? What do you see instead?
I expect that the iDocIt! editor opens without error and I see a docpart at the
operation with the thematic role "RULE" and the documentation text "The rule".
But I get following error:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at java.lang.String.substring(String.java:1904)
at de.akra.idocit.java.services.SimpleJavadocParser.extractDocumenationText(SimpleJavadocParser.java:683)
at de.akra.idocit.java.services.SimpleJavadocParser.createDocumentation(SimpleJavadocParser.java:737)
at de.akra.idocit.java.services.SimpleJavadocParser.parseIDocItJavadoc(SimpleJavadocParser.java:897)
at de.akra.idocit.java.services.JavaInterfaceParser.processMethodDeclaration(JavaInterfaceParser.java:485)
at de.akra.idocit.java.services.JavaInterfaceParser.processAbstractTypeDeclaration(JavaInterfaceParser.java:354)
at de.akra.idocit.java.services.JavaInterfaceParser.processTypeDeclaration(JavaInterfaceParser.java:232)
at de.akra.idocit.java.services.JavaInterfaceParser.processCompilationUnit(JavaInterfaceParser.java:190)
at de.akra.idocit.java.services.JavaInterfaceParser.parse(JavaInterfaceParser.java:142)
at de.akra.idocit.java.services.JavaParser.parse(JavaParser.java:138)
at de.akra.idocit.core.services.impl.EclipsePersistenceService.loadInterface(EclipsePersistenceService.java:136)
at de.akra.idocit.ui.components.DocumentationEditor.init(DocumentationEditor.java:286)
at de.akra.idocit.ui.components.DocumentationEditor$DocumentationEditorConfigListener$2.run(DocumentationEditor.java:127)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4683)
at de.akra.idocit.ui.components.DocumentationEditor$DocumentationEditorConfigListener.initializationFinished(DocumentationEditor.java:117)
at de.akra.idocit.core.IDocItActivator.addConfigurationListener(IDocItActivator.java:127)
at de.akra.idocit.ui.components.DocumentationEditor.createPartControl(DocumentationEditor.java:471)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:331)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor$18.openEditor(AbstractDecoratedTextEditor.java:1969)
at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:179)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
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)
The error occurs also always if I click into the Javadoc comment so the iDocIt!
view shall update.
Original issue reported on code.google.com by dirk.mei...@gmail.com on 31 Oct 2012 at 3:53
Original issue reported on code.google.com by
dirk.mei...@gmail.com
on 31 Oct 2012 at 3:53