javalang icon indicating copy to clipboard operation
javalang copied to clipboard

JavaSyntaxError for Multiline Strings in Annotations

Open tahyonline opened this issue 2 years ago • 1 comments

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.

tahyonline avatar Sep 14 '22 11:09 tahyonline

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

retroandchill avatar Feb 20 '24 14:02 retroandchill