Skip to content

[Question] Modules vs Private #1

@jzy3d

Description

@jzy3d

Thanks for your cheatsheet!

You say that "In pre-Java 9 world any public class was available everywhere and could be used by any other class". Preventing access to a class is often cited as one of the advantages of Java 9 modules. Do you know why the existingprivate keyword is not enough when willing to prevent usage of a class?

Beside this I often wonder why one would want to hide code in a world where 99% of dependencies come from open source projects!

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