Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using burningwave to export all modules to all modules #2621

Open
IlyaMuravjov opened this issue Sep 25, 2023 · 0 comments
Open

Consider using burningwave to export all modules to all modules #2621

IlyaMuravjov opened this issue Sep 25, 2023 · 0 comments
Labels
comp-instrumented-process Issue is related to Instrumented process ctg-enhancement New feature, improvement or change request

Comments

@IlyaMuravjov
Copy link
Collaborator

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 IlyaMuravjov added ctg-enhancement New feature, improvement or change request comp-instrumented-process Issue is related to Instrumented process labels Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-instrumented-process Issue is related to Instrumented process ctg-enhancement New feature, improvement or change request
Projects
Status: Todo
Development

No branches or pull requests

1 participant