Repository: incubator-groovy Updated Branches: refs/heads/GROOVY_2_4_X 789b064dc -> 052c37865
ResolveVisitor: Correct class mentioned in GroovyBugError thrown from LowerCaseClass#setName Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/052c3786 Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/052c3786 Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/052c3786 Branch: refs/heads/GROOVY_2_4_X Commit: 052c37865df441da926d0ce12acd7d063e16b1d4 Parents: 789b064 Author: Shil Sinha <sh...@apache.org> Authored: Fri Nov 6 00:32:31 2015 -0500 Committer: Shil Sinha <sh...@apache.org> Committed: Fri Nov 6 00:32:54 2015 -0500 ---------------------------------------------------------------------- src/main/org/codehaus/groovy/control/ResolveVisitor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/052c3786/src/main/org/codehaus/groovy/control/ResolveVisitor.java ---------------------------------------------------------------------- diff --git a/src/main/org/codehaus/groovy/control/ResolveVisitor.java b/src/main/org/codehaus/groovy/control/ResolveVisitor.java index 302207c..8149a3a 100644 --- a/src/main/org/codehaus/groovy/control/ResolveVisitor.java +++ b/src/main/org/codehaus/groovy/control/ResolveVisitor.java @@ -139,7 +139,7 @@ public class ResolveVisitor extends ClassCodeExpressionTransformer { * does for vanilla names starting with a lower case letter. The idea * that if we use a vanilla name with a lower case letter, that this * is in most cases no class. If it is a class the class needs to be - * imported explicitly. The efffect is that in an expression like + * imported explicitly. The effect is that in an expression like * "def foo = bar" we do not have to use a loadClass call to check the * name foo and bar for being classes. Instead we will ask the module * for an alias for this name which is much faster. @@ -163,7 +163,7 @@ public class ResolveVisitor extends ClassCodeExpressionTransformer { if (redirect()!=this) { return super.setName(name); } else { - throw new GroovyBugError("ConstructedClassWithPackage#setName should not be called"); + throw new GroovyBugError("LowerCaseClass#setName should not be called"); } } }