Multiple wildcard import
Is your feature request related to a problem? Please describe. I'm writing an import optimization script for java programs, yet when I have more than one wildcard import in java (such as java.aws.*) it does not add any of the wildcard imports as import nodes. Based on the asteriskImportNodes function in javasrc2cpg's front-end, it seems like when there isn't only one wildcard import, it returns an empty sequence. This means that I do not have the full list of imports for my import optimization program, bringing it to a halt since optimizing wildcard imports is one of the most important aspects of it.
Describe the solution you'd like Apparently, previous iterations did returns a list of all wildcard imports. They were implemented in the scala front-end for java. Perhaps a return to that solution would be feasible.
Describe alternatives you've considered Technically you can guess the imports using the full names of various nodes such as methods, classes, and so on, but since I require the wildcard imports to give optimization suggestions, I can't really guess where the asterisks is being used in the import statement. For example, if I am using a function from jdk.jshell.execution.JdiExecutionControllerProvider, if I don't have access to the wildcard import statements, I won't know if the import statement the user wrote is jdk.jshell.execution.* or jdk.jshell.* thus meaning that I can't really "guess" it using only method' full name.
Additional context Here is a link to and a screenshot of asteriskImportNodes
https://github.com/joernio/joern/blob/a113c4850286ce6820e7914fa8bb1c67b1393231/joern-cli/frontends/javasrc2cpg/src/main/scala/io/joern/javasrc2cpg/astcreation/AstCreator.scala#L226
@johannescoetzee a quick check in here as I encountered the same issue. Do you have any updates to share?
Bumping this, I agree with things mentioned in the issue @johannescoetzee
I somehow missed this issue, so thanks for the bump. These import nodes should indeed be added to the CPG
Bumping again 🙏 Can you please look into it