Semgrep: [Java] "NoTokenLocation" on @Attr({})

Created on 16 Dec 2020  路  4Comments  路  Source: returntocorp/semgrep

Describe the bug
"NoTokenLocation Match returned an empty list" should instead just return an empty list for that metavar. Returning an error prevents it from detecting all possible attributes in RequireScope annotation.

To Reproduce
https://semgrep.dev/s/J9Xd

What is the priority of the bug to you?
P0 because I can't run this rule without it.

bug external-user java high

Most helpful comment

Ok I got this.

All 4 comments

Hi @Mandawi,

This looks like a Java parsing bug. cc @aryx who's familiar with the relevant parts of the codebase.

Ok I got this.

@Mandawi looks like this is fixed -- you should be able to verify by running with the @develop docker image -- and will be going out in the next release!

Thanks for the help 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

inkz picture inkz  路  6Comments

DrewDennison picture DrewDennison  路  3Comments

ajinabraham picture ajinabraham  路  6Comments

msorens picture msorens  路  5Comments

DrewDennison picture DrewDennison  路  4Comments