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 <[EMAIL PROTECTED]>: > 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>: >>> 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 > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users > _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
