@SneakyThrows causes Eclipse refactoring 'surround with try/catch' to fail #511

Closed
lombokissues opened this Issue Jul 14, 2015 · 3 comments

Projects

None yet

1 participant

@lombokissues
Collaborator

Migrated from Google Code (issue 438)

@lombokissues
Collaborator

👤 jorn86   🕗 Dec 13, 2012 at 10:02 UTC

What steps will reproduce the problem?

  1. Put @ SneakyThrows with a parameter (so it doesn't catch everything) on a method
  2. Inside the method, throw an uncaught exception, Eclipse will show an error
  3. Use the Eclipse quick fix 'surround with try/catch' or 'surround with try/multicatch'
  4. The code throwing the exception will be deleted instead of putting it inside a block.

What is the expected output? What do you see instead?
Expected: Code in try/catch block. Actual: No code.

What version of the product are you using? On what operating system?
Eclipse 3.7.1, Windows 7

Please provide any additional information below.
Feel free to have Roel or RJ come by my desk so I can show him :)

@lombokissues
Collaborator

👤 r.spilker   🕗 Feb 20, 2014 at 20:33 UTC

This bug got fixed by the same commit as the fix for issue #668.

@lombokissues
Collaborator

End of migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment