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
hi @SiBorya ; would you mind elaborating a bit if this is already part way through a migration or not? Wondering if this is an issue with parsing the Apache HttpClient 4 code at all, or when there have already been a number of ChangeType recipe invocations.
After debug, I suppose using JavaTemplate will trigger OpenRewrite to parse types again.
For example, a method contains 4 lines of code. Recipe A changes line 1 and the dependency using JavaTemplate. Before sending to Recipe B, it will parse the method and find line 3 "Unknown" because of dependency changed.
What version of OpenRewrite are you using?
I am using
What is the smallest, simplest way to reproduce the problem?
For
ObjectClassA.methodX().methodY()
methodX()
returnObjectClassA
methodY()
doesn't exist inClassB
After changing
ObjectClassA
toObjectClassB
, OpenRewrite can't detect themethodType
ofmethodY()
(the pattern should beClassB methodY()
I suppose the issue is related to line 462
Here the code snippet you may need in my case (from httpclient4 to httpclient5):
The text was updated successfully, but these errors were encountered: