Bug 194429 - Error message for BindingTypePattern provides no context
Summary: Error message for BindingTypePattern provides no context
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.5.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.6.2   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-26 10:40 EDT by Barry Kaplan CLA
Modified: 2008-08-21 14:12 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Barry Kaplan CLA 2007-06-26 10:40:02 EDT
When there is a binding error (eg, the type specified in a pointcut args does not match the bound method type) the below error is emitted. This message provides no context as the source of the error.

25 Jun 22:25:56,285 ERROR-AspectJWeaverLogger - incompatible type,
expected java.util.Map found BindingTypePattern(java.util.Set, 1).
Check the type specified in your pointcut
[][main][com.foliofn.infra.aspectj.AspectJWeaverLogger]
Comment 1 Andrew Clement CLA 2008-08-21 14:12:17 EDT
Fixed - now includes the context:

error at before(Map m): p(m) {
               ^
C:\temp\ajcSandbox\aspectj16_1\ajcTest3072.tmp\A.java:14:0::0 incompatible type, expected java.util.Set found BindingTypePattern(java.util.Map, 0).  Check the type specified in your pointcut