Skip to content

Error when shading package but not subpackage #31

@AlessandroPatti

Description

@AlessandroPatti

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions