-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skeleton should reflect the exact overloaded called method #403
Comments
@paulodamaso/z please, pay attention to this issue |
@HDouss You are proposing that we should add this information to skeleton? |
@paulodamaso yes this information is clearly lacking. See the example in the ticket description. Looking to the skeleton, we don't know which method is called, we just know that its name is |
@HDouss Okay, thanks for the clarification |
@0crat in |
I've read the issue and links double and didn`t find what is this information. |
@0crat wait |
@dgarus When analyzing a class and calculating its metric, jpeek starts by building a skeleton. The skeleton is an XML representation of the class, its method, its attributes, and the instructions in each method. For now, the skeleton produced contains the method calls instructions. These method calls instructions contains only the name of the called method. This is not enough to know which method is actually called, because many methods could have the same name. |
@HDouss I got it but I asked
"This information" is already described or I should propose a new structure to describe this information? |
@dgarus It is not described. The most important thing is that it exists. I could suggest this: <op code="call">OverloadMethods.methodOne(Ljava/lang/String;Ljava/lang/String;)D</op> or <op code="call">
<name>OverloadMethods.methodOne</name>
<signature>(Ljava/lang/String;Ljava/lang/String;)D</signature>
</op> |
@HDouss Ok, I got it. Thx!
It seems more formal. WDYT? |
@dgarus agree. Note that this will have a rather big impact on the current metrics calculations. @paulodamaso What do you think? |
@HDouss I think that it would be a good idea. Which metrics will be affected by this change? |
@paulodamaso it isn't the metrics, but the way to calculate them. Nearly every xsl file should be modified to adapt its xpath that selects called methods. |
@HDouss could you please close the issue? |
@dgarus Thanks |
@sereshqua/z please review this job completed by @dgarus/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed |
@0crat quality good |
Today, the skeleton reflects method calls by their name. For example, the skeleton for OverloadMethods.java have:
The two calls are reported in
<op code="call">
elements areOverloadMethods.methodOne
and no information is given on which overloaded method is called. This is specially important to calculate LCOM4.The text was updated successfully, but these errors were encountered: