Bug 350435 - TypeDeclaration.java:79
Summary: TypeDeclaration.java:79
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.6.11   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-27 08:37 EDT by Gábor Pécsy CLA
Modified: 2011-06-28 11:49 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gábor Pécsy CLA 2011-06-27 08:37:40 EDT
org.aspectj.org.eclipse.jdt.internal.compiler.problem.AbortCompilation
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.abort(TypeDeclaration.java:79)
at org.aspectj.org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:132)
at org.aspectj.ajdt.internal.compiler.problem.AjProblemReporter.handle(AjProblemReporter.java:308)
at org.aspectj.org.eclipse.jdt.internal.compiler.problem.ProblemReporte ...              RETURN   (line 356)
  end public void testPressReleaseSearchDateRange()
end public class com.meltwater.mwire.core.index.SearchEngineTest
Comment 1 Andrew Clement CLA 2011-06-27 13:13:17 EDT
Aborts are not necessarily unusual, they occur during normal operation all the time.  Typically they indicate that some operation performing a task is going to produce stale results (because the user has done something) so an abort is used to terminate that task early so a more up to date version can run.

Occasionally they happen for bad reasons but I would need to know some context - is that the entire stack trace, is there no secondary message below the Abort?  Did compilation break? or?  Is there more info in your error log? (Window>ShowView>ErrorLog)
Comment 2 Gábor Pécsy CLA 2011-06-28 03:38:41 EDT
Sorry, I don't have too much to add. I randomly encountered this error. I got a window popping up kindly asking me to report the bug and this is all the information that was available there. 
When this happened I was indeed clicking around in the IDE while it was rebuilding the workspace in the background but I can't recall the exact thing I was doing. Nevertheless, I got the same error to times (two popups) and after copying the content of the window I decided to restart Eclipse. I never encountered this error earlier or since then.

I looked into the ErrorLog, though I'm not sure how much this helps after a restart. There is one error there that might be related to AJ (I just think this because it is reported by a plugin called org.eclipse.contribution.weaving.jdt). It is there about 20 times:

java.lang.NullPointerException
at org.eclipse.ajdt.core.text.ITDAwareSelectionRequestor.acceptType(ITDAwareSelectionRequestor.java:286)
at org.eclipse.jdt.internal.codeassist.SelectionEngine.selectFrom(SelectionEngine.java:1098)
at org.eclipse.jdt.internal.codeassist.SelectionEngine.selectFrom(SelectionEngine.java:1227)
at org.eclipse.jdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:938)
at org.eclipse.ajdt.core.text.ITDCodeSelection.findJavaElement(ITDCodeSelection.java:71)
at org.eclipse.ajdt.internal.core.contentassist.ContentAssistProvider.doCodeSelect(ContentAssistProvider.java:167)
at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect_aroundBody1$advice(CompilationUnit.java:317)
at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:1)
at org.eclipse.jdt.internal.ui.javaeditor.JavaElementHyperlinkDetector.detectHyperlinks(JavaElementHyperlinkDetector.java:67)
at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:276)
at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:452)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:205)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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:369)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

Session data:
eclipse.buildId=M20110210-1200
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
Comment 3 Andrew Eisenberg CLA 2011-06-28 11:49:57 EDT
Hi,

This NPE:

java.lang.NullPointerException
at
org.eclipse.ajdt.core.text.ITDAwareSelectionRequestor.acceptType(ITDAwareSelectionRequestor.java:286)

has been fixed in the latest dev build.  You can upgrade using the dev update site and this should be gone.  We are very close to releasing 2.1.3, and the code is unlikely to change between now and then.  So, upgrading now will likely give you the same codebase as the final release.