Use of qualified type names in external flow summary models #12278
-
Hi! I am new to CodeQL and I am trying to understand the type signatures returned by the I would have expected them all to be fully qualified except for maybe references to types in I would like to understand what the rules are here so that I can properly interpret the type references and match them to the corresponding method declarations. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey @knutwannheden, This is how it's supposed to work:
Does this match your observations? If not, could you point us to a specific example that doesn't follow these rules? |
Beta Was this translation helpful? Give feedback.
-
Hi @atorralba , Thanks for your swift response. That already helps me understand things a bit better. Although I am still wondering according to which rules you decide to use all fully-qualified names or all unqualified names in the optional signature when writing these model files. Having fully qualified names everywhere would be quite helpful, when for example using Java reflection to do a lookup of the respective method. Otherwise the client program may end up having to loop over all the methods to find the desired method, rather than just doing a "direct" lookup (using the respective types). This because the client program doesn't know which exact type for example "Entry" corresponds to (is it |
Beta Was this translation helpful? Give feedback.
Hey @knutwannheden,
This is how it's supposed to work:
java.lang;String;false;toString;...
...;(String,List,Map);...
or...;(java.lang.String,java.util.List,java.util.Map);...
input
andoutput
columns use fully qualified names (e.g....;Field[my.package.MyClass.classField];...
Does this match your observations? If not, could …