Fix auto-generated eclipse try/catch to be less trappy
When generating a try-catch block, the eclipse default is something like this: ``` try { something(); } catch (Exception e) { // TODO: auto-generated stub e.printStackTrace(); } which is terrible, so the ES eclipse changes this to rethrow a RuntimeException instead. ``` try { something(); } catch (Exception e) { throw new RuntimeException(); } ``` Unfortunately, this loses the original exception entirely, instead it should be: ``` try { something(); } catch (Exception e) { throw new RuntimeException(e); } ```
This commit is contained in:
parent
5104365a92
commit
1e00b85411
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue