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

@SneakyThrows leads to exception: null with javac 1.8 #710

Closed
lombokissues opened this issue Jul 14, 2015 · 7 comments
Closed

@SneakyThrows leads to exception: null with javac 1.8 #710

lombokissues opened this issue Jul 14, 2015 · 7 comments

Comments

@lombokissues
Copy link

Migrated from Google Code (issue 675)

@lombokissues
Copy link
Author

👤 brinkmann.michael   🕗 May 02, 2014 at 21:29 UTC

What steps will reproduce the problem?

  1. Compile the attached java-source with lombok 1.12.6 and attached javassist-jar in classpath.
  2. When using JDK 1.6.0_45, compilation works ok
  3. When using JDK 1.8.0 (b132) instead, the compilation issues a warning (see below)

What is the expected output?
Compilation should issue no warning.

What do you see instead?
warning: Error during the transformation of 'XY'; post-compiler 'lombok.bytecode.SneakyThrowsRemover' caused an exception: null
1 warning

What version of the product are you using? On what operating system?
lombok 1.12.6
Windows 7 Home Premium SP1

Please provide any additional information below.

It is unclear whether javassist has anything to do with the issue. I use @ SneakyThrows in several other contexts, but problem arises only in the given context.

@lombokissues
Copy link
Author

👤 brinkmann.michael   🕗 May 02, 2014 at 21:29 UTC

🔗 XY.java View file

@lombokissues
Copy link
Author

👤 brinkmann.michael   🕗 May 02, 2014 at 21:29 UTC

🔗 javassist-3.18.1-GA.jar

@lombokissues
Copy link
Author

👤 r.spilker   🕗 May 20, 2014 at 23:20 UTC

This seems to be fixed already in the current code. Can you try the edge release: https://projectlombok.org/download-edge.html

@lombokissues
Copy link
Author

👤 r.spilker   🕗 May 20, 2014 at 23:20 UTC

Duplicate of issue #690

@lombokissues
Copy link
Author

👤 brinkmann.michael   🕗 May 21, 2014 at 21:12 UTC

yes, the issue does not occur with the edge release.

Thx!

@lombokissues
Copy link
Author

End of migration

lianhaijun pushed a commit to lianhaijun/lombok that referenced this issue May 8, 2020
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](mockito/mockito@v3.1.0...v3.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant