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

Verify Error on Byte Buddy generated class #1589

Open
gmondelli-hub opened this issue Feb 6, 2024 · 1 comment
Open

Verify Error on Byte Buddy generated class #1589

gmondelli-hub opened this issue Feb 6, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@gmondelli-hub
Copy link

I created this maven library project in spring-boot for creating excel and csv reports.
The project uses the Byte Buddy library to generate runtime dynamic classes necessary for the purpose of the project.

I tested the correct functioning of this library as a dependency of spring-boot projects having datasource configurations and only with embedded tomcat servers provided by the Spring Tool Suite IDE (version: 3.9.12.RELEASE).

The problem, as shown in the screenshots, is if I try to start the Spring application from the command line (java -jar) or with different IDEs I get a VerifyError for corrupt bytecode:

image

In the error shown in the figure, the ViwSanVerextStatoFornReportRow class is the ReportRow class generated from the ViwSanVerextStatoForn JPA Entity component.

Are there any suggestions or reasons for this kind of problem?

Issue already created here: issue

@raphw
Copy link
Owner

raphw commented Feb 6, 2024

It seems like a constructor is instrumented incorreclty. This is a user error. Constructors must not use this other than for setting fields before the super constructor is invoked.

@raphw raphw self-assigned this Feb 6, 2024
@raphw raphw added the question label Feb 6, 2024
@raphw raphw added this to the 1.14.1 milestone Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants