c2nes / javalang

Pure Python Java parser and tools
MIT License
737 stars 161 forks source link

JavaSyntaxError for Multiline Strings in Annotations #122

Open tahyonline opened 2 years ago

tahyonline commented 2 years ago

When the Annotation has a multiline string parameter, the parser throws a JavaSyntaxError exception.

@Subselect("""
        select t.field
        from table t
        """)
public class SomeEntity { ... }

The expected behaviour would be to parse the multiline string as regular string parameters for Annotations.

retroandchill commented 8 months ago

We're also running into this issue with a constant containing a multiline string