Cosium / spring-data-jpa-entity-graph

Spring Data JPA extension allowing full dynamic usage of EntityGraph on repositories
MIT License
469 stars 52 forks source link

Java 12 Support #28

Closed ben-schroeder closed 5 years ago

ben-schroeder commented 5 years ago

Hi there,

I just tried to use spring-data-jpa-entity-graph 2.1.0 with openjdk-12.0.1 and it throws a NoSuchFieldException:

Caused by: java.lang.NoSuchFieldException: modifiers at java.base/java.lang.Class.getDeclaredField(Class.java:2417) at com.cosium.spring.data.jpa.entity.graph.repository.support.EntityGraphJpaRepositoryFactory.addEntityGraphToSpecialTypes(EntityGraphJpaRepositoryFactory.java:58) ... 52 common frames omitted

Thanks in advance for looking into this.

reda-alaoui commented 5 years ago

This will be fixed by #23 Meanwhile, like in JDK 11, I think you can permit illegal access with --illegal-access=permit.

RomainWilbert commented 4 years ago

This does not work with JDK 13 either --illegal-access=permit changes nothing

reda-alaoui commented 4 years ago

@RomainWilbert , take a look at https://github.com/Cosium/spring-data-jpa-entity-graph/issues/23#issuecomment-573799772