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
The CopyMappingsDown mappings change contributor doesn't check to make sure the parameter for which it is applying mappings would actually have a mapping.
The above example, if provided with mappings only for ParentClass$InnerStaticClass#<init> would apply 2 parameter mappings to ChildClass$InnerClass#<init>, the double param's mappings as well as the implicit ParentClass parameter.
I assume this is also an issue for any captured variables that would be in the constructor of a method-local class.
The CopyMappingsDown mappings change contributor doesn't check to make sure the parameter for which it is applying mappings would actually have a mapping.
The above example, if provided with mappings only for
ParentClass$InnerStaticClass#<init>
would apply 2 parameter mappings toChildClass$InnerClass#<init>
, the double param's mappings as well as the implicit ParentClass parameter.I assume this is also an issue for any captured variables that would be in the constructor of a method-local class.
Tests I wrote to demo the issue: https://pastes.dev/BMugODf0zE
The text was updated successfully, but these errors were encountered: