Skip to content

Class names and case sesitivity #1454

@DarkDimius

Description

@DarkDimius

scala.collection.immutable.Stream defines inner class Cons and an inner object cons.
The second one triggers creation of a class cons with static forwarders, that are used in separate compilation and that bears TASTY.
OS X has case-insensitive filesystem and Cons.class and cons.class overwrite each-other.

Manifests itself with a funny exception:

Exception in thread "main" java.lang.NoClassDefFoundError:
scala/collection/immutable/Stream$Cons (wrong name: scala/collection/immutable/Stream$cons)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions