openpojo icon indicating copy to clipboard operation
openpojo copied to clipboard

Warnings when using with Java 9 due to direct access to private fields.

Open oshoukry opened this issue 7 years ago • 0 comments

From Issue #108

Also note that after getting the path, I get the following warnings:


WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.openpojo.reflection.impl.PojoFieldImpl (file:/Users/johnmarsh/.m2/repository/com/openpojo/openpojo/0.8.6/openpojo-0.8.6.jar) to field java.lang.Exception.serialVersionUID
WARNING: Please consider reporting this to the maintainers of com.openpojo.reflection.impl.PojoFieldImpl
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

I seem to remember reading that Oracle will be better protecting in the future, but I can't find my reference at the moment, and I don't recall if there will be other, preferred ways of doing reflection in the future...

Thanks again!

oshoukry avatar Jan 07 '18 05:01 oshoukry