Proposal: #ReflectiveAccessToNonExportedTypes: `exports dynamic`

Sander Mak sander.mak at luminis.eu
Fri Jul 1 08:49:13 UTC 2016


> On 01 Jul 2016, at 10:41, Sven Reimers <sven.reimers at gmail.com> wrote:
> 
> Hi all,
> 
> regarding exporting DTO to hibernate..
> 
> I think the whole point of having JPA is to not have explicit dependency to
> hibernate..

Hence the proposal for `exports dynamic`, where you don't have to qualify the export to a certain module. The relation between the DTO module and JPA would be expressed by having a `requires jpa` (or whatever module the spec annotations will live in). The `dynamic` part makes sure no other modules take an accidental dependency on your DTOs (if that's what you want) at compile-time. All sounds good to me.


Sander



More information about the jpms-spec-observers mailing list