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:
Robert Muir 2015-11-02 11:45:55 -05:00
parent 5104365a92
commit 1e00b85411
1 changed files with 1 additions and 1 deletions

File diff suppressed because one or more lines are too long