github / github/codeql

Java: Some expressions have `<any>` as type

Aperta
#11,442 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
CodeQL
Stelle
10.1k
Fork
2.1k
Merge medio
2g 15h
PR unite (30g)
141

Descrizione

### Version

CodeQL CLI 2.11.4

### Description

Some expressions seem to have `` as type which is a CodeQL `Class` without any supertypes. Is that intended?

Example query:
```codeql
/**
* @kind problem
*/

import java

from Expr e
where e.getType().hasName("")
select e, "has as type"
```
Ran against https://github.com/codecentric/spring-boot-admin/commit/85ec2b7f61c60e2435ae645cb2017492ca75c940

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.