github / github/codeql

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

Open
#11,442 6 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.