Bug 521077 - [tests] Hidden load failures
Summary: [tests] Hidden load failures
Status: NEW
Alias: None
Product: QVTd
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-17 13:03 EDT by Ed Willink CLA
Modified: 2017-08-30 05:16 EDT (History)
1 user (show)

See Also:


Attachments
CompleteOCL reproducer for the "No opposite..." message (10.00 KB, application/octet-stream)
2017-08-29 10:33 EDT, Marcus Huewe CLA
no flags Details
Plugin test to provoke the "No opposite for..." message (3.15 KB, patch)
2017-08-29 13:13 EDT, Marcus Huewe CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2017-08-17 13:03:50 EDT
A number of tests such as CS2AS testExample4_Interpreted fail to load adequately resulting in a failure to may EIntegerObject to a pivot type. The new xmi:id detects that as a bad opposite.

Temporarily worked around in PivotLUSSIDs.java.
Comment 1 Marcus Huewe CLA 2017-08-29 10:31:37 EDT
Maybe something related: the attached project, which contains two complete OCL
files, can be used to provoke a

No opposite for $$::Tuple::xyz

error.

How to reproduce:
- import the attached project
- clean the imported project "Project -> Clean..." (this starts the
  XtextBuilder, which indirectly calls DefaultResourceDescriptionStrategy.createReferenceDescriptions(...),
  which eventually (indirectly) executes the related AS2ID code)
Comment 2 Marcus Huewe CLA 2017-08-29 10:33:17 EDT
Created attachment 270012 [details]
CompleteOCL reproducer for the "No opposite..." message
Comment 3 Ed Willink CLA 2017-08-29 10:57:31 EDT
(In reply to Marcus Huewe from comment #1)
>   executes the related AS2ID code)

AS2ID was first pushed to OCL master on 18-Aug-2017 and so there is no stable OCL build that includes it. Are you using a recent N-build or GIT master?

This is a QVTd bug not that obviously related to your possibly OCL issue.

I cannot reproduce the issue in my workspace, which probably differs in some significant way from your configuration.
Comment 4 Marcus Huewe CLA 2017-08-29 13:13:31 EDT
Created attachment 270014 [details]
Plugin test to provoke the "No opposite for..." message
Comment 5 Marcus Huewe CLA 2017-08-29 13:22:06 EDT
(In reply to Ed Willink from comment #3)
> (In reply to Marcus Huewe from comment #1)
> >   executes the related AS2ID code)
> 
> AS2ID was first pushed to OCL master on 18-Aug-2017 and so there is no
> stable OCL build that includes it. Are you using a recent N-build or GIT
> master?
> 
git master (in a vanilla eclipse oxygen).

> This is a QVTd bug not that obviously related to your possibly OCL issue.
> 
Agreed. If you prefer, I can open a new bug report for the OCL product.

> I cannot reproduce the issue in my workspace, which probably differs in some
> significant way from your configuration.

I just hacked a junit plugin test that does not pass, because
the "No opposite for $$::Tuple::xyz" is printed.
Can you reproduce it via this plugin test?
Comment 6 Ed Willink CLA 2017-08-30 05:16:55 EDT
(In reply to Marcus Huewe from comment #5)
> Agreed. If you prefer, I can open a new bug report for the OCL product.

Thanks. Reproduced. Moved to Bug 521577 since this is nothing to do with the original and outstanding observation that there are some hidden load failures (observable if IOExceptions are breakpointed.)