| Summary: | [xtend] static method usage not generating try-catch-sneakyThrow | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | McKinley <mckinley1411> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jan |
| Version: | 2.2.0 | Flags: | jan:
juno+
|
| Target Milestone: | M5 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Could not reproduce with HEAD revision. But it looks pretty much like bug 365165 which has been fixed in the meantime. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Build Identifier: Static method with the follow signature does not get wrapped in a try-catch-sneakThrow when used in a local method: public static String toString(final HttpEntity entity) throws IOException, ParseException {...} ParseException extends RuntimeException The following signature works fine: public static void consume(final HttpEntity entity) throws IOException {...} Reproducible: Always Steps to Reproduce: // Does not generate try-catch-sneakyThrow def consumeToString(HttpEntity entity) { return EntityUtils::toString(entity) } // Does generate try-catch-sneakyThrow def consume(HttpEntity entity) { EntityUtils::consume(entity) }