shadow icon indicating copy to clipboard operation
shadow copied to clipboard

Native methods should not be relocated in the Java code

Open maguro opened this issue 5 years ago • 3 comments

Shadow Version

5.2.0

Gradle Version

5.6.4

Expected Behavior

Native functions should not be relocated in the Java code that's being relocated. The shared libraries' functions are hard coded and so native functions should not be relocated.

Actual Behavior

Native functions are being relocated in the Java code that's being relocated.

maguro avatar Jan 27 '20 15:01 maguro

Have you found any workaround for the issue? I'm seeing the same behavior with rocksdbjni using automatic relocation. The Java classes are moved to the shadowed package, but the natives are not.

boroczkigabor avatar Apr 07 '21 14:04 boroczkigabor

If your question was directed toward me, haven't. Sorry.

maguro avatar Apr 09 '21 16:04 maguro

Any reproducer for this? I'm planning to fix it.

Goooler avatar Feb 27 '25 07:02 Goooler