InspectionGadgets 0.0.6.1 with build 992

I'm seeing a lot of these exceptions now :( I'm not sure if this is
this simply an inspection that I'd switch off before and just re-enabled
or a problem with IG and the new build

Guy

Error message: Exception happened in local inspection tool: Local
Variable naming convention
java.lang.ClassCastException

at
com.siyeh.ig.naming.LocalVariableNamingConventionInspection.buildErrorString(LocalVariableNamingConventionInspection.java:33)

at
com.siyeh.ig.BaseInspectionVisitor.registerError(BaseInspectionVisitor.java:29)

at
com.siyeh.ig.naming.LocalVariableNamingConventionInspection$NamingConventionsVisitor.visitParameter(LocalVariableNamingConventionInspection.java:157)

at com.intellij.psi.impl.source.bg.accept(bg.java:16)

at com.intellij.psi.impl.source.f.s.acceptChildren(s.java:79)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java)

at
com.intellij.psi.JavaElementVisitor.visitStatement(JavaElementVisitor.java:167)

at
com.intellij.psi.JavaElementVisitor.visitTryStatement(JavaElementVisitor.java:94)

at com.intellij.psi.impl.source.f.a.bo.accept(bo.java:49)

at com.intellij.psi.impl.source.f.s.acceptChildren(s.java:79)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java)

at
com.intellij.psi.JavaElementVisitor.visitCodeBlock(JavaElementVisitor.java:34)

at com.intellij.psi.impl.source.f.a.br.accept(br.java:67)

at com.intellij.psi.impl.source.f.s.acceptChildren(s.java:79)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java)

at
com.intellij.psi.JavaElementVisitor.visitStatement(JavaElementVisitor.java:167)

at
com.intellij.psi.JavaElementVisitor.visitBlockStatement(JavaElementVisitor.java:44)

at com.intellij.psi.impl.source.f.a.g.accept(g.java:13)

at com.intellij.psi.impl.source.f.s.acceptChildren(s.java:79)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java)

at
com.intellij.psi.JavaElementVisitor.visitStatement(JavaElementVisitor.java:167)

at
com.intellij.psi.JavaElementVisitor.visitIfStatement(JavaElementVisitor.java:43)

at com.intellij.psi.impl.source.f.a.t.accept(t.java:46)

at com.intellij.psi.impl.source.f.s.acceptChildren(s.java:79)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java)

at
com.intellij.psi.JavaElementVisitor.visitCodeBlock(JavaElementVisitor.java:34)

at com.intellij.psi.impl.source.f.a.br.accept(br.java:67)

at com.intellij.psi.impl.source.p.acceptChildren(p.java:92)

at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java)

at
com.intellij.psi.JavaElementVisitor.visitMethod(JavaElementVisitor.java:165)

at com.intellij.psi.impl.source.bc.accept(bc.java:43)

at
com.siyeh.ig.naming.LocalVariableNamingConventionInspection.checkMethod(LocalVariableNamingConventionInspection.java:86)

at com.intellij.codeInsight.k.a.i.a(i.java:83)

at com.intellij.codeInsight.k.a.bk$1.run(bk$1.java:6)

at com.intellij.openapi.application.b.b.runReadAction(b.java:286)

at com.intellij.codeInsight.k.a.bk.a(bk.java:23)

at com.intellij.codeInsight.k.a.bk.access$100(bk.java:9)

at com.intellij.codeInsight.k.a.bk$0.run(bk$0.java:2)

at
com.intellij.progress.ProgressManager.runProcess(ProgressManager.java:34)

at com.intellij.codeInsight.k.a.bk.run(bk.java:26)



1 comment

Gah, what a stupid bug. This occurs when you have a catch block parameter which violates your local variable naming convention. This must have been an inspection you just turned on, as the issue has been there since at least 0.0.3. I've got a fix that will go in 0.0.7 (probably next week), but until then you'll probably wish to not use the local variable naming convention inspection/error-check. Apologies.

--Dave

0

Please sign in to leave a comment.