Bug 108886

Summary: Getting Exception during compilation : java.lang.RuntimeException: Internal Compiler Error: Unexpected null source location passed as 'see also' location.
Product: [Tools] AspectJ Reporter: Dhananjay Nene <dnene>
Component: CompilerAssignee: Adrian Colyer <adrian.colyer>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: P3    
Version: DEVELOPMENT   
Target Milestone: 1.5.0 M4   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Jar containg sources, build.xml and compiler dump file none

Description Dhananjay Nene CLA 2005-09-06 19:02:23 EDT
Am attaching a small test case to reproduce the error 
(Not sure how to attach it - hopefully should be feasible to do so after I log
the bug).
Comment 1 Dhananjay Nene CLA 2005-09-06 19:04:43 EDT
Created attachment 26873 [details]
Jar containg sources, build.xml and compiler dump file

Attached file contains the sources, ant file (poorly hacked version of the one
in examples - expects all jars in a "lib" directory which is a peer to "src")
and the compiler core dump file.
Comment 2 Dhananjay Nene CLA 2005-09-08 00:26:46 EDT
There is a good likelihood what I am attempting to do is not feasible - however
even in that case there should be a reasonable error message rather than an
internal error.
Comment 3 Adrian Colyer CLA 2005-09-08 04:14:35 EDT
tagging with M4...
Comment 4 Adrian Colyer CLA 2005-09-08 12:57:52 EDT
this was caused by trying to issue a message saying that the type User must
implement the methods from Identifiable (in the aspect DomainIntroduction, you
have declared two local methods getId and setId, whereas I suspect you meant
these to be ITDs on Domain?). The source location for the parameterized versions
of the methods was null which lead to the crash. 

This has now been fixed in the tree. Thanks for the easy to reproduce bug report.
Regards, Adrian.