You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is recommended also to include [Objenesis](https://github.com/easymock/objenesis) library into your application.
@@ -184,7 +185,7 @@ It's possible to use annotations to configure field/type actions and custom type
184
185
185
186
There is three modes of execution: recursive, sequential (default) and parallel.
186
187
187
-
In sequential mode does not use recursion. Uses [DFS](https://en.wikipedia.org/wiki/Depth-first_search) (by default) or [BFS](https://en.wikipedia.org/wiki/Breadth-first_search) algorithm for the object graph traversal.
188
+
In sequential mode does not use recursion. Uses [Depth-first](https://en.wikipedia.org/wiki/Depth-first_search) (by default) or [Breadth-first](https://en.wikipedia.org/wiki/Breadth-first_search) algorithm for the object graph traversal.
188
189
189
190
In parallel mode the order of copying is unpredictable.
190
191
@@ -201,6 +202,10 @@ The library requires Java 8 or higher.
201
202
202
203
Default configuration of reflection cloner does not clone lambdas and method references. These can be cloned using [UnsafeObjectFactoryProvider](jdk8/src/main/java/org/sugarcubes/cloner/UnsafeObjectFactoryProvider.java).
203
204
205
+
Java 9+ restricts accessing objects members via Reflection API. To solve this one may
206
+
- use `--illegal-access=permit` JVM argument (works on Java below 17);
207
+
- use `--add-opens` JVM arguments, e.g. `--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED`.
0 commit comments