Skip to main content



      Home
Home » Modeling » EMF » [XCORE] Warning "The feature is bidirectional reference."
[XCORE] Warning "The feature is bidirectional reference." [message #1754031] Mon, 13 February 2017 21:28 Go to next message
Eclipse UserFriend
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 01:04 Go to previous message
Eclipse UserFriend
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.
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: Wed Jul 16 05:05:46 EDT 2025

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

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

Back to the top