[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] ClassCastException
|
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