UTBotJava icon indicating copy to clipboard operation
UTBotJava copied to clipboard

Consider using burningwave to export all modules to all modules

Open IlyaMuravjov opened this issue 3 years ago • 0 comments

Description

Right now, UtBot deals with InaccessibleObjectException in Java 17+ by opening individual packages for reflection (see OpenModulesContainer, however this approach is not exhaustive and new InaccessibleObjectException issues periodically arise (e.g. #448, #909, #1308, #2619, some other related issues regarding CLI and Java API).

Furthermore, generated tests fail with InaccessibleObjectException when run by user without manually added --add-opens flags (see Troubleshooting: InaccessibleObjectException: successful symbolic executions fail due to failing utility methods).

There's a burningwave.core library that can let us solve InaccessibleObjectException problem altogether with one method call org.burningwave.core.assembler.StaticComponentContainer.Modules.exportAllToAll() that can be both executed concretely and added to generated tests, we should at least consider using it.

IlyaMuravjov avatar Sep 25 '23 15:09 IlyaMuravjov