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
Describe the bug
I have recently upgraded my project's Java from 16 to 19. Now, compiling throws an error at a class that has @SneakyThrows - particularly at line 63. Here's my deduction process:
I've been getting an empty error ("X:63" with no elaboration); I've changed that line, then outright deleted it, and it still was happening.
I cleared the class to only have about 50 lines, then it started throwing an error at the 63rd line of another class.
I decided to comment out all the Lombok annotations in both classes and it compiled successfully.
I slowly uncommented all the annotations and it compiled successfully, with the exception of @SneakyThrows - in fact, the only 2 classes that had SneakyThrows were the classes that it would throw compile errors at.
As such I've come to a conclusion that something is wrong with the SneakyThrows interpretation, and, for some reason, it's all good in Java 16.
Error:
To Reproduce
Create a project, make a method, in which something would normally throw errors (like IO operations), annotate it with @SneakyThrows, try to compile the project. Make sure that the class has at least 63 lines, preferably more.
Expected behavior
The compilation should have been successful even with @SneakyThrows.
Version info (please complete the following information):
Lombok:
Describe the bug
I have recently upgraded my project's Java from 16 to 19. Now, compiling throws an error at a class that has @SneakyThrows - particularly at line 63. Here's my deduction process:
As such I've come to a conclusion that something is wrong with the SneakyThrows interpretation, and, for some reason, it's all good in Java 16.
Error:
To Reproduce
Create a project, make a method, in which something would normally throw errors (like IO operations), annotate it with @SneakyThrows, try to compile the project. Make sure that the class has at least 63 lines, preferably more.
Expected behavior
The compilation should have been successful even with @SneakyThrows.
Version info (please complete the following information):
Lombok:
Javac:
javac 19.0.1
.Additional context
The project is a Spigot plugin.
The text was updated successfully, but these errors were encountered: