Bug 108886 - Getting Exception during compilation : java.lang.RuntimeException: Internal Compiler Error: Unexpected null source location passed as 'see also' location.
Summary: Getting Exception during compilation : java.lang.RuntimeException: Internal ...
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: 1.5.0 M4   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-06 19:02 EDT by Dhananjay Nene CLA
Modified: 2005-09-08 12:57 EDT (History)
0 users

See Also:


Attachments
Jar containg sources, build.xml and compiler dump file (6.36 KB, application/octet-stream)
2005-09-06 19:04 EDT, Dhananjay Nene CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.