From 41e91a791a74c88ecdccf705d63654cbebab8cfe Mon Sep 17 00:00:00 2001 From: sweinreuter Date: Wed, 25 Nov 2009 11:28:30 +0100 Subject: [PATCH] IDEA-25989: Improved error message --- .../pattern/compiler/impl/PatternValidationInstrumenter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/pattern/compiler/impl/PatternValidationInstrumenter.java b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/pattern/compiler/impl/PatternValidationInstrumenter.java index 2c6ec539f7ac..04f86978fcef 100644 --- a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/pattern/compiler/impl/PatternValidationInstrumenter.java +++ b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/pattern/compiler/impl/PatternValidationInstrumenter.java @@ -73,7 +73,7 @@ public class PatternValidationInstrumenter extends ClassAdapter implements Instr if (name.equals(ASSERTIONS_DISABLED_NAME)) { myHasAssertions = true; } else if (name.equals(PATTERN_CACHE_NAME)) { - throw new InstrumentationException("Internal Error: Processing already instrumented class: " + myClassName); + throw new InstrumentationException("Error: Processing an already instrumented class: " + myClassName + ". Please recompile the affected class(es) or rebuild the project."); } return super.visitField(access, name, desc, signature, value); @@ -175,7 +175,7 @@ public class PatternValidationInstrumenter extends ClassAdapter implements Instr }; } - final Type argTypes[] = Type.getArgumentTypes(desc); + final Type[] argTypes = Type.getArgumentTypes(desc); final Type returnType = Type.getReturnType(desc); // don't dig through the whole method if there's nothing to do in it