Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365165 - [xtend] static method usage not generating try-catch-sneakyThrow
Summary: [xtend] static method usage not generating try-catch-sneakyThrow
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: M5   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-30 03:02 EST by McKinley CLA
Modified: 2017-09-19 17:49 EDT (History)
1 user (show)

See Also:
jan: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description McKinley CLA 2011-11-30 03:02:57 EST
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)
}
Comment 1 Jan Koehnlein CLA 2012-01-17 12:59:32 EST
Could not reproduce with HEAD revision. 
But it looks pretty much like bug 365165 which has been fixed in the meantime.
Comment 2 Karsten Thoms CLA 2017-09-19 17:38:22 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:49:34 EDT
Closing all bugs that were set to RESOLVED before Neon.0