Fails to parse annotation's fields with default value
Brought to you by:
dhiebert
ctags fails to properly identify the name of a field within a Java annotation if it has a default vaule. It works just fine when no default is present.
This is the obtained output for a failing scenario. The declaration is parsed properly, but the reported field name is not. A �
is found where message
is expected
� src/main/java/com/monits/commons/validation/UploadedFile.java /^ String message() default "{constraints.uploadedfile}";$/;" f interface:UploadedFile
I've attached a patch for this issue. It's been tested with the reference file Test/bug1777340.java and also in the open source library https://github.com/Monits/monits-commons (where the case reported above can be found).
Interesting.
Could you give a pull request for https://github.com/fishman/ctags ?
Done in https://github.com/fishman/ctags/pull/328
Fixed in universal-ctags.