You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Annotation @UtilityClass don't working when using static import
Screenshots
To Reproduce
Let's create a test class with a single VALUE field, specifying public final access modifiers for it. We will put the @UtilityClass annotation above the class, which will add the final access modifier to the class, the static access modifier to the field, and also create a private constructor.
Let's create a class with the Main method, where we will output the VALUE field from the previously created class to the console. When accessing it via ClassName.VALUE, the program runs without errors. Next, we will execute maven clean and instead of accessing the field by the name of the class, we will use static import.
We launch the application and get an error:
java: cannot find symbol
symbol: static VALUE
location: class test.util.TestUtil
Version info (please complete the following information):
Lombok version: 1.18.34
Platform: javac 22.0.1
The text was updated successfully, but these errors were encountered:
Annotation @UtilityClass don't working when using static import
Screenshots
To Reproduce
Let's create a test class with a single VALUE field, specifying public final access modifiers for it. We will put the @UtilityClass annotation above the class, which will add the final access modifier to the class, the static access modifier to the field, and also create a private constructor.
Let's create a class with the Main method, where we will output the VALUE field from the previously created class to the console. When accessing it via ClassName.VALUE, the program runs without errors. Next, we will execute maven clean and instead of accessing the field by the name of the class, we will use static import.
We launch the application and get an error:
java: cannot find symbol
symbol: static VALUE
location: class test.util.TestUtil
Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: