Skip to content

sun.misc.Unsafe in code generation #121

Open
@denis-fokin

Description

@denis-fokin

Description

Our tests may contain usages of sun.misc.Unsafe class. Removal of sun.misc.Unsafe class is a backward incompatible change in Java internal API. Tests that have been generated this way cannot be run with Java 9+.

Expected behavior

The generated code does not contain sun.misc.Unsafe invocations.

Environment

Run the utbot-framework tests, find generated tests with unsafe.

Potential alternatives

For Java 9 it was possible to use flags in order to allow internal API usage. But it does not work for higher versions of Java.

Context

No additional context.

Metadata

Metadata

Assignees

Labels

comp-codegenIssue is related to code generatorctg-enhancementNew feature, improvement or change requestpriority-top-focusTop priority chosen by dev team

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions