Bug 534144 - [cg] Unique function returnung invalid must cache the exception
Summary: [cg] Unique function returnung invalid must cache the exception
Status: NEW
Alias: None
Product: QVTd
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-27 06:57 EDT by Ed Willink CLA
Modified: 2018-04-27 06:57 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2018-04-27 06:57:37 EDT
ATL2QVTr has a helper

query getHelper(element : atlMM::LocatedElement[1]) : atlMM::Helper[1] {
	element->closure(e : ocl::OclElement | e.oclContainer())->selectByKind(atlMM::Helper)->any(true)
		}

that may fail if any() has an empty source.

The generated Java does not cache the exception. It does not even catch the exception that is just a pattern matching failure, not an transformation failure.