Fraunhofer-AISEC / cpg

A library to extract Code Property Graphs from C/C++, Java, Go, Python, Ruby and every other language through LLVM-IR.
https://fraunhofer-aisec.github.io/cpg/
Apache License 2.0
246 stars 59 forks source link

Ignore Type resolution error when resolving super types through `javaparser` #1520

Closed konradweiss closed 1 month ago

konradweiss commented 1 month ago

A type is resolved to then resolve its super types, in some cases this fails when an inferred type unknown to the java parser appears to fail. We catch the error similar to the case where resolution of the supertypes fail and do not further try to resolve the type.

While in a prior Issue with the Javaparser we decided to use our internal resolution through the scope manager, I don't think we are currently able to parse type hierarchies from the entirety of the code.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
62.5% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud