Java: CompilationUnit elements in Module are .class
files instead of .java
files
#5556
Labels
Java
not security
This issue does not relate to a security query
question
Further information is requested
There are two predicates for matching
CompilationUnit
to correspondingModule
,Module.getACompilationUnit()
andCompilationUnit.getModule()
(both using the database predicatecumodule(@file, @module)
).The issue is that the reported compilation units appear to always be the
.class
files instead of the source.java
files, even when themodule-info.java
file was part of the source.For example the following query against OpenJDK has no results:
Query Console link
However, if you manually try to match
.class
compilation units with.java
compilation units, you will get the desired results:Query Console link
The text was updated successfully, but these errors were encountered: