Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365320 - [Xbase] Cachingstrategy in XbaseTypeProvider fails in computing thrown exceptions
Summary: [Xbase] Cachingstrategy in XbaseTypeProvider fails in computing thrown except...
Status: CLOSED DUPLICATE of bug 365109
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-01 09:55 EST by Holger Schill CLA
Modified: 2011-12-01 10:12 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Schill CLA 2011-12-01 09:55:45 EST
class foo {

    def bar() throws NullPointerException {}

    def fuzz() {
        throw Exception
    }

    def baz() {
        new File("test.txt").canonicalFile
    }

}

Calling typeprovider.getThrownExceptionTypes( XtendFunction bar) will compute the throw NullpointerException right and for the body of fuzz also but:
typeprovider.getThrownExceptionTypes( Body of baz) will end up with an empty list

This issue is cause by the Cachingstrategy in the XbaseTypeProvider.
Comment 1 Sven Efftinge CLA 2011-12-01 10:02:50 EST

*** This bug has been marked as a duplicate of bug 365109 ***