Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2
-
None
Description
One can rename a given class using, e.g.:
<relocation> <pattern>com.example.foo.</pattern> <shadedPattern>com.uber._foo.__</shadedPattern> </relocation>
Using the above relocation, com.example.foo.Bar will be relocated to com.uber._foo.__Bar and this is fine. If the source jar is generated, the .java file will be moved accordingly. The proposed patch changes the source information in the relocated class to use the new basename of the Java source file, making it possible to debug again. My Apache ICLA is on file, rights are granted, and a test of the functionality is included.