Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Mac OS X 10.3.2, java 1.4.2
Description
I cannot use a variable name that is the same as a class name, even if the case if different. For example, this will fail:
snap = new Snap()
with this error:
org.codehaus.groovy.syntax.SyntaxException: Cannot use a class expression on the left hand side of an assignment.
I believe this is because the default Mac OS file system supports mixed case filenames but file name searches are case insensitive. It appears that groovy searches the FS for a class that matches the token to determine if it is a class. But I think for Mac OS, even if it finds an FS match, it needs to do its own case sensitive comparison to determine if the token is indeed a class name.