Fixed an issue to the Shader class that caused shading rules to fail being applied correctly. The issues looked random and behavior was different from one machine to the other. The issue was trigged when we started shading Multi-Release jars that contained classes files under META-INF.
The issue is from the reuse the EntryStruct from one call to the other. Once the flag skipTransform is set to true (By jarjar's MisplacedClassProcessor), the plugin stop applying the shading rule. The behavior looks random since it is affected by the order in which the files are processed.
The patch just make sure to reset the flag between each call.
Fixes #248
Fixed an issue to the Shader class that caused shading rules to fail being applied correctly. The issues looked random and behavior was different from one machine to the other. The issue was trigged when we started shading Multi-Release jars that contained classes files under META-INF.
The issue is from the reuse the EntryStruct from one call to the other. Once the flag skipTransform is set to true (By jarjar's MisplacedClassProcessor), the plugin stop applying the shading rule. The behavior looks random since it is affected by the order in which the files are processed.
The patch just make sure to reset the flag between each call.