Bug 229829 - SourceTypeBinding.sourceStart() NPE
Summary: SourceTypeBinding.sourceStart() NPE
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: IDE (show other bugs)
Version: 1.6.0   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 1.6.2   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 242200 248446 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-01 14:00 EDT by Yuriy Gorvitovskiy CLA
Modified: 2008-09-24 14:20 EDT (History)
5 users (show)

See Also:


Attachments
More detailed Eclipse error log (74.68 KB, text/plain)
2008-07-28 07:13 EDT, Toby Weston CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuriy Gorvitovskiy CLA 2008-05-01 14:00:27 EDT
java.lang.NullPointerException
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.sourceStart(SourceTypeBinding.java:1514)
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding.sourceStart(MethodBinding.java:988)
at org.aspectj.ajdt.internal.compiler.lookup.EclipseSourceType.fillDeclaredMembers(EclipseSourceType.java:243)
at org.aspectj.ajdt.internal.compiler.lookup.EclipseSourceType.getDeclaredFiel ...                     IRETURN
  end public boolean isTracingModifications()

end public class com.centricsoftware.pi.core.data.reflection.Attribute
Comment 1 Andrew Clement CLA 2008-07-13 11:51:32 EDT
When change some jave file that had some syntax error, the exception happend.
Comment 2 Toby Weston CLA 2008-07-28 07:09:22 EDT
I get this intermittently, after I save a Java file, slightly different stack trace but it looks similar to me

java.lang.NullPointerException
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.sourceStart(SourceTypeBinding.java:1514)
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding.sourceStart(MethodBinding.java:992)
at org.aspectj.ajdt.internal.compiler.lookup.EclipseSourceType.fillDeclaredMembers(EclipseSourceType.java:255)
at org.aspectj.ajdt.internal.compiler.lookup.EclipseSourceType.getDeclaredMeth ...  access$0(com.racediary.gui.preferences.GoogleCalendarPreferencePage)

Is this the same as bug 242200?

I'm on Version: 3.4.0, Build id: I20080617-2000 with AJDT Version: 1.6.0.200807041530 and AspectJ version: 1.6.1.20080703120000.

Cheers
Comment 3 Toby Weston CLA 2008-07-28 07:13:40 EDT
Created attachment 108534 [details]
More detailed Eclipse error log 

More details eclipse error log
Comment 4 Andrew Clement CLA 2008-07-29 12:20:58 EDT
*** Bug 242200 has been marked as a duplicate of this bug. ***
Comment 5 Andrew Clement CLA 2008-07-29 13:34:00 EDT
Fix for this is now in AspectJ.  Fix will be in AJDT for Eclipse 3.3 shortly (AJDT 1.5.4 dev builds).  It should also be in the next AJDT for Eclipse 3.4 build, but that may not happen for a few days.
Comment 6 Andrew Clement CLA 2008-08-20 15:09:45 EDT
fix available
Comment 7 Andrew Clement CLA 2008-09-24 11:55:23 EDT
*** Bug 248446 has been marked as a duplicate of this bug. ***
Comment 8 Mariela CLA 2008-09-24 14:06:44 EDT
Is the fix available for Eclipse 3.3? Where can I donwload it? The last version a see on eclipse.org is 1.5.3. I can't find version 1.5.4 for Eclipse 3.3

(In reply to comment #6)
> fix available
> 

Comment 9 Andrew Clement CLA 2008-09-24 14:20:46 EDT
The latest dev builds of ajdt for eclipse 3.3 are at the update site:

 http://download.eclipse.org/tools/ajdt/33/dev/update

Linked under the 'Development builds for Eclipse 3.3' section of the ajdt download page.