[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] ClassCastException
|
- From: "Andy Clement" <andrew.clement@xxxxxxxxx>
- Date: Mon, 23 Jun 2008 19:04:40 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Z5VtbANeUdA8oFyRoUCqS0OK1SwSSXCHlR1skgWOuD8=; b=vxvAOnMjmrBzz6EHAh45Ndm5EH9fE0Y5EPPQGGr2NzLT3axbt05Ks5LPc+RwlEbzsS s9IKLzEoZfGMTjuYc3E0BU/5ONietGpfrbPEbEAUT4cEgAOx+QGQWSl4lbH0I3KcZLKI KwiCQ4ZUO7vJp7xgQsnYD0C9TgdVRWaRNTr/Q=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=wSOn8J8wLBTuGxZlgvj15HmHtTp10g4z22lFzjRRdv6FXUfiQJaZRACbBayO3q8gx3 zdIEQnvK9WpVAj6Yr74ShGU8iGDxxlhIwwwU7ideyF9tiV3nqSeADsvOFgIbwKlKzHXY 6rTgriQq233eEA45h1Bjam6N54BtfqcuJspng=
Hi Joel,
It is in working out whether casts are useless that it fails, so it
isn't triggered by you
having an unnecessary cast.
For me the option is in
Java>Compiler>Errors/Warnings
then on right hand pane:
Unnecessary Code>Unnecessary cast or 'instanceof' statement
Anyway, i've just committed the proper fix for this, it will be in
AJDT in the next day or so.
cheers,
Andy.
2008/6/23 <joel@xxxxxxxxxxx>:
> I don't see any option in the prefs tab regarding uselessTypeCheck --
> how do I do that? I tried adding -warn:-uselessTypeCheck to the
> "nonstandard ajc options" but that didn't seem to make a difference.
>
> I also tried code cleanup on the code to remove unnecessary casts.
> Still get error.
>
> Thanks!
>
>
> On Mon, Jun 23, 2008 at 5:04 PM, Andy Clement <andrew.clement@xxxxxxxxx> wrote:
>> Hi Joel,
>>
>> Looks like a regression of
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=180264 .
>>
>> I'll refix it now, to stop it happening for now you can remove the
>> 'uselessTypeCheck' option that you must have set for the project at
>> the moment (if it is the same issue...)
>>
>> cheers,
>> Andy.
>>
>> 2008/6/23 <joel@xxxxxxxxxxx>:
>>> If this is the wrong list for this question, please direct me to the
>>> appropriate place.
>>>
>>> I just installed the AJDT dev build 1.5.3.200806211921 for Eclipse 3.3
>>>
>>> I get the following error when converting a project to AspectJ:
>>>
>>> java.lang.ClassCastException
>>> at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding.getVisibleBinding(MethodBinding.java:215)
>>> at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope.findMethod(Scope.java:1267)
>>> at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope.getMethod(Scope.java:2143)
>>> at org.aspectj.org.eclipse.jdt.internal.compiler.ast.CastExpression.checkAlternateBinding(CastExpression.java:245)
>>> at or ... thrown:
>>> org.aspectj.org.eclipse.jdt.internal.compiler.ast.CastExpression$1
>>> cannot be cast to
>>> org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>