osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
36 stars 8 forks source link

AadlUnparser - 'provides' access print 2x #29

Closed glasnier closed 12 years ago

glasnier commented 12 years ago

The 'provides' token is printed 2x by the AadlUnparser when you use the function "Do Save (aaxl2) as Text (aadl)" on an xmi file.

Example of bug: processor The_Processor features ETH: providesprovides bus access Ethernet_Bus; end The_Processor;

It seems to be a wrong copy/paste in the construction of the string 'd' located in caseXXxAccess methods. (See the class org.osate.xtext.aadl2.util.AadlUnparser.java and the caseBusAccess method for example).

reteprelief commented 12 years ago

Thanks for finding this. It was a cut & paste problem. I fixed it and pushed the fix to the develop branch in osate.