Skip to content

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

Open
@IlyaMuravjov

Description

@IlyaMuravjov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp-instrumented-processIssue is related to Instrumented processctg-enhancementNew feature, improvement or change request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions