I did notice one thing which might be an
error in the code, not aspectJ. The values of the map are both FieldModel, but
they are in different packages.
expected com.myapp.model.FieldModel<>>
found com.csc.ezbook.eztarif.model.FieldModel<*>>
One is likely a subclass of the other, which may or may not mean this
isn’t an issue, but at least superficially, it’s more than just a
<> not matching <*> issue.
Troy
From:
aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Andy Clement
Sent: Friday, March 20, 2009 12:18
PM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] can't
compile anymore with generic in pointcut
I'd raise a bug for that
- and attach more code to the bug if you can, I don't think I have enough to go
on from the message with all those generics flying around - what pointcut are
you matching with? what is the joinpoint you are matching on?
Over the 1.6 release more of the AJ codebase has become generics aware and that
has left some areas producing messages like this because they are getting
passed more detailed information than they had in previous releases - and
making wrong decisions about it leading to incorrect messages. I probably
just need to upgrade the code producing this message, but none of my tests
trigger something like this.
> By the way, as the AJDT guys seemed to completely forgot to deliver some
aspectjtools.jar I'm using the one from 1.6.0 - but I don't think it matters
here.
Err, AJDT doesn't ship aspectjtools.jar. That is available as part of the
corresponding AspectJ distribution.
Andy.
2009/3/20 Justin Case <send_lotsa_spam_here@xxxxxxxxx>
Hi all,
I just upgraded AJDT from 1.6.0 to 1.6.4 and suddenly I get the following
error:
[iajc] error at : syncFields(theData, changedMap, outputMap,
runRules)
[iajc]
^^^^^^^
[iajc]
E:\hudson\jobs\Main\WOPI\Data\plugins\com.myapp\src\com\myapp\aspects\DataAccess.aj:389:0::0
incompatible type, expected
java.util.HashMap<java.lang.String,com.myapp.model.FieldModel<>>
found BindingTypePattern(java.util.HashMap<java.lang.String,com.csc.ezbook.eztarif.model.FieldModel<*>>,
1). Check the type specified in your pointcut
[iajc] MessageHolder: (74 info) (1 error)
[iajc] [error 0]: error at : syncFields(theData,
changedMap, outputMap, runRules)
[iajc]
^^^^^^^
[iajc]
E:\hudson\jobs\Main\workspace\WOPI\Data\plugins\com.myapp\src\com\myapp\aspects\DataAccess.aj:389:0::0
incompatible type, expected
java.util.HashMap<java.lang.String,com.csc.ezbook.eztarif.model.FieldModel<>>
found
BindingTypePattern(java.util.HashMap<java.lang.String,com.csc.ezbook.eztarif.model.FieldModel<*>>,
1). Check the type specified in your pointcut
I don't really get it: is it complaining about that new BindingTypePattern, is
it complaining about the <> versus <*> (although in my code it's
<?> everywhere), is it complaining about the thing it underlined
(theData), is it an error coming from AJDT shipping as latest release a
development release (as it looks), do I see one or two errors here, or what?
I'm so confused :)
By the way, as the AJDT guys seemed to completely forgot to deliver some
aspectjtools.jar I'm using the one from 1.6.0 - but I don't think it matters
here.
Thanks for any input,
JM
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
|