[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] ClassCastException
|
- From: joel@xxxxxxxxxxx
- Date: Mon, 23 Jun 2008 17:57:39 -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:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=hD5jPERAyWiVEO5zdBDIwSY4//kuoy29ioe5tb9ake4=; b=kXEmVskqzNKFF3VVQsa2+UKYx+NyhRr+nENTEAoDm4f8G10sIW4R3W41eYV7ud+H2V 5xtIXh2+jCobLNPuj74hezYZHnlDv21G3BS04Stqx2Wo48rw31NCi12kv0xvKoZk79OF KR3LXeNTCVG25AzJ7WV+JLPxGnXAz+Qnd+mRE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=xj/s1OoN6lNhzmUQJXBSrsUpOR7QmA1ZA4kpZ7Yl5Yfdnq7o+9TUTLZ90FnMouQuMG hp2h4l+l/UkoOEeQ0z7HEcDJx0sQZLSB2Am6deu0nbe5PKxzZ7K2NhobGaC6GXIJ/qjB 4NPE530ffz3j0PpYDMXyQC8B43dIvrI2761rc=
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