Open shadow1305 opened 4 years ago
Any answers of this issue?
I made it work with java 12/13 on a fork. I will open a PR asap.
Here is the commit corresponding to the migration from java 8 to 12 : https://github.com/sta-szek/pojo-tester/commit/4f68d6eabd3f30a7fbf5504367c83d62cc0e4a68
The fork uses maven. We just need to upgrade the same libraries in the gradle file in the original project and it should work fine!
@sta-szek This issue now applies to Java 14 as well, which is set to go GA later this month. Could we get an update to pojo tester to accommodate newer Java releases?
This is the PR for Java 13 support https://github.com/sta-szek/pojo-tester/pull/241
how to fix this error?
@frecco75 Would you mind posting your version of the library into a package repo, since it looks like the original maintainer is not taking your pull?
@frecco75 @kontaras @shadow1305 I got the same error with jdk 18. Are you going to provide a fix for that version?
@frecco75 @kontaras @shadow1305 I got the same error with jdk 17 Please provide solution for this issue
pl.pojo.tester.internal.GetOrSetValueException: Unable to get or set value for field 'modifiers' in class 'class java.lang.reflect.Field'. Cause message: modifiers
Caused by: java.lang.NoSuchFieldException: modifiers at java.base/java.lang.Class.getDeclaredField(Class.java:2412) at pl.pojo.tester.internal.utils.FieldUtils.makeModifiable(FieldUtils.java:90) ... 74 more