Java: JavadocElement location is off by one
- Lingua principale
- CodeQL
- Stelle
- 10.1k
- Fork
- 2.1k
- Merge medio
- 2g 15h
- PR unite (30g)
- 141
Descrizione
### Version
CodeQL CLI v.2.5.2
### Description
It appears for every `JavadocElement` the location within the Java source is off by one, and this adds up for every subsequent element.
### Example
Java source:
```java
/**
* test1234567890
* test1234567890
* test1234567890
* test1234567890
* test1234567890
* @author test1234567890
* @author test1234567890
* @author test1234567890
* @author test1234567890
* @author test1234567890
*/
class Test {
}
```
Code QL query:
```ql
import java
from JavadocElement j
select j, j.getLocation().getStartColumn()
```
Run the query for example in VSCode and click on each of the results
:x: Each `JavadocElement` is shifted to the left by one (in addition to the offset of previous elements):

Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.