[IDEA] Using Lombok in Idea can not find its automatically generated method string is too long javac eclipse compilation

insert image description here

1 Overview

I'm going to do a test today, and then I copied a super long string, and then when I run it, I get an error that the string is too long.

insert image description here
java constant string, the maximum allowed length is only 65534. In the final analysis, it is the problem of javac, which has nothing to do with the idea itself, but it is not - it has nothing to do with it. Follow this path to open

The method is as follows:
File >> Settings >> Build,Execution,Deployment >> Compiler >>Java Compiler

Change Use compiler to Eclipse;

insert image description here
The test can be run at the beginning, and then I cleaned it once, which caused all the compiled classes to fail. Need to recompile&#x

Guess you like

Origin blog.csdn.net/qq_21383435/article/details/123512519