github / github/codeql

cannot search MethodAceess inside source code

Open
#4,902 1 comment 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

**Description of the issue**

There is an inner project which is impossible to share the source code. I have created the database of the project by:

```
codeql database create -l java d:\databasefolder
```

The project is built by JDK8. All modules are built successfully. Utilize the following query to search the method `parseURL`:

```
import java

from MethodAccess ma, Method m
where ma.getMethod() = m and
m.getName() = "parseURL"
select ma
```

The results are only in `HttpUtilsTest.java`. However, there should exists the call in `HttpUtils.java`. I have tried to recreated the database. But it still doesn't work.

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.