[ https://issues.apache.org/jira/browse/GROOVY-11670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17954576#comment-17954576 ]
Saravanan commented on GROOVY-11670: ------------------------------------ Respectful ping on topic. A lot of class names in my Java project start with a lower case letter. Is there a way to 1) allow interop with these java classes and 2) allow the definition of classes with lower case first letter in Groovy? > Class names that start with lower case letters > ---------------------------------------------- > > Key: GROOVY-11670 > URL: https://issues.apache.org/jira/browse/GROOVY-11670 > Project: Groovy > Issue Type: Improvement > Components: parser-antlr4 > Affects Versions: 5.0.0-alpha-12, 4.0.26 > Reporter: Saravanan > Priority: Minor > > Classes that start with a lower case name cause parsing errors. I am > compiling this with @CompileStatic enabled in the compilerConfiguration > {code:java} > public class recordTesting { > private recordTesting someFunction() { > return null; > } > }{code} > Unexpected input: ';\n\npublic class recordTesting {\n\n private static > recordTesting someFunction(' @ line 5, column 46. > tic recordTesting someFunction() { > ^ > If none of the functions returned a type with a lower case first letter, > things are fine. It looks like there is no issue with the lower class class > definition, just the use of that type in a return value. Not sure if the > CapitalizedIdentifier is an enforced groovy construct. Java allows this and > groovy causes this to fail as well, preventing use of types defined in java > {code:java} > public class SomeOtherClass { > private someClassDefinedInJava someFunction() { > } > }{code} -- This message was sent by Atlassian Jira (v8.20.10#820010)