java - Eclipse: Why can a library-jar of ProjectA access a library-jar of ProjectB even though the library-jar isn't marked as exported? -
i have 2 two projects, let's call them project , b. project uses project b library-project , project b has "library.jar". library not exported project b. third party library used project can use "library.jar" project b.
how possible?
if create class in project tries reference exact library can't import library, imported library can?
it using library, because if remove library project bs buildpath won't work library in project either.
exported means api, not exported means internal:
the term exported comes osgi/plug-in development (see eclipse help: plug-in runtime) , refers visibility: exported build class entries visible in projects have project in build path. not exported build path entries in upstream projects part of build path, but not visible (can not referenced in source code).
eclipse has own compiler supports modularization @ compile time (developed osgi offered in simpler way via required projects , export flags plain java). if not use osgi have flat build path without modularization @ runtime.
Comments
Post a Comment