Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [XCORE] Warning "The feature is bidirectional reference."
[XCORE] Warning "The feature is bidirectional reference." [message #1754031] Tue, 14 February 2017 02:28 Go to next message
chris yo is currently offline chris yoFriend
Messages: 146
Registered: February 2013
Senior Member
I have an xcore model using bidirectional cross-references.

This is my grammar:
Model:
	greetings+=(Greeting| Test)*;
	
Greeting:
	'Hello' sample=[Test] 'age' age=INT '!';
Test:
	'Bye' sName=ID '!' 'see' 'you' date=ID';'
;


My xcore looks like this:
class Model {
	contains EObject[] greetings
}

class Greeting {
	refers Test sample opposite greet
	int age
}

class Test {
        refers Greeting greet opposite sample
	String sName
	String date
}


But I am getting this warning "The feature sample is bidirectional reference. This may cause problems in the linking process." How can I fix this warning? I cannot modify the Test grammar to include a reference to greeting.
Re: [XCORE] Warning "The feature is bidirectional reference." [message #1754039 is a reply to message #1754031] Tue, 14 February 2017 06:04 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
This warning comes from Xtext. I'm not sure what problems bidirectional references can cause for Xtext linking, but the Xtext forum is the better place to ask about that.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] Attempt by Transaction[2:8] to modify historical revision
Next Topic:[XCORE] Modify "Couldn't resolve reference" error
Goto Forum:
  


Current Time: Fri Apr 19 08:52:43 GMT 2024

Powered by FUDForum. Page generated in 0.01818 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top