You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to parse parameter annotations in the dynamic class constructor and found that ClassGraph applies annotations with a shift to the left. So the annotation for the first parameter goes to the implicit parameter with an instance of the parent class. The annotation for the second parameter comes to the first one.
@Lodin Sorry, my initial analysis about this was totally wrong, I deleted the comment -- and I apologize that it took me months to look into this -- I have been completely swamped.
I wrote a unit test based on the code you provided, and it passes fine. Can you please try to break the unit test?
(Sorry, I tagged the commit with the wrong issue number -- it is here: 0380d46 )
Description
I was trying to parse parameter annotations in the dynamic class constructor and found that ClassGraph applies annotations with a shift to the left. So the annotation for the first parameter goes to the implicit parameter with an instance of the parent class. The annotation for the second parameter comes to the first one.
Here is my original code:
And ClassGraph parses it the following way:
Expected behavior
I expect ClassGraph to apply annotations as specified in the source code.
Repro
I have created a small reproduction example.
ClassGraph#verbose()
The text was updated successfully, but these errors were encountered: