Skip to content

Avoid split package scala.collection.generic #5

Closed
@retronym

Description

@retronym

Could we move CanCombineFrom and friends to scala.collection.parallel?

This would reduce source compatibility, but give us a better chance at packaging our artifacts as Java 9 modules in the future.

Related discussion:

The real problem is more that after Groovy 2 we started splitting Groovy
into different jars. But for backwards compatibility we didn't change the
packages. So you can find classes in package groovy.util in both the
groovy-core jar and the groovy-xml jar. Those jars would be obvious
candidates for modules but as split packages are not allowed this is not
possible. This doesn't give us many options. I was in favor of breaking
everything, since Jigsaw is a long journey in any case, and leverage that
to have Groovy 3 use different packages. Of course not everybody is happy
with this, because it's a huge issue for all existing libraries that rely
on "old" packages. We would basically break every Groovy program out there.
Both at the source and binary level.

http://jigsaw-dev.1059479.n5.nabble.com/The-split-package-problem-td5714102.html#a5714115

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions