Error when shading package but not subpackage
AlessandroPatti opened this issue · comments
Alessandro Patti commented
Shading the following classes
package org.experimental
class Value(kind: org.experimental.Kinds.Kind)
object Kinds { class Kind {} }
with these rules
rule org.experimental.** @0
rule org.** shaded.@0
causes the following error when trying to instantiate the shaded Value
class
[error] Symbol 'term shaded.org.experimental' is missing from the classpath.
[error] This symbol is required by 'value org.experimental.Value.kind'.
[error] Make sure that term experimental is in your classpath and check for conflicting dependencies with `-Ylog-classpath`.
[error] A full rebuild may help if 'Value.class' was compiled against an incompatible version of shaded.org.
[error] class Verify { new Value(new Kinds.Kind) }
[error] ^
[error] one error found