Sorry for the rather weird implementation - I wasn't sure how much you cared about backwards compatibility of the API in the actual Java code, so I've tried to preserve it as much as possible. Happy to clean it up if that's not an issue.
This changes the remapper to always call findAccess when remapping a name, rather than just on visitFieldInsn/visitMethodInsn instructions. This means that method handles are remapped using the correct access flag, and so references to private methods are not remapped.
Sorry for the rather weird implementation - I wasn't sure how much you cared about backwards compatibility of the API in the actual Java code, so I've tried to preserve it as much as possible. Happy to clean it up if that's not an issue.
This changes the remapper to always call
findAccess
when remapping a name, rather than just onvisitFieldInsn
/visitMethodInsn
instructions. This means that method handles are remapped using the correct access flag, and so references to private methods are not remapped.Fixes #60