Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Support of OSGI DS 1.3 annotations in Xtend?
Support of OSGI DS 1.3 annotations in Xtend? [message #1830851] Wed, 05 August 2020 09:28 Go to next message
Zakir Meer is currently offline Zakir MeerFriend
Messages: 50
Registered: February 2016
Member
Hello,

Is there a support for OSGI DS 1.3 annotations in Xtend.
When I have added OSGI annotations in Xtend file I am getting compilation errors please have a look at the attached screenshot

index.php/fa/38731/0/
Re: Support of OSGI DS 1.3 annotations in Xtend? [message #1830853 is a reply to message #1830851] Wed, 05 August 2020 09:44 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
depends on the type of annotations, we dont support Java 8 type annotations https://github.com/eclipse/xtext-extras/issues/218 https://bugs.eclipse.org/bugs/show_bug.cgi?id=443305

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Wed, 05 August 2020 10:13]

Report message to a moderator

Re: Support of OSGI DS 1.3 annotations in Xtend? [message #1830855 is a reply to message #1830853] Wed, 05 August 2020 10:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
p.s: the syntax for a list/array is #[] and not {}
so for annotations on classes this should work

@Component(
property=#[
"x",
"Y",
"z"
]
)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Wed, 05 August 2020 10:13]

Report message to a moderator

Re: Support of OSGI DS 1.3 annotations in Xtend? [message #1830856 is a reply to message #1830855] Wed, 05 August 2020 10:30 Go to previous message
Zakir Meer is currently offline Zakir MeerFriend
Messages: 50
Registered: February 2016
Member
Hi Christian,
Thanks for the quick reply. It worked, as you mentioned I changed the syntax as per Xtend.
index.php/fa/38733/0/

[Updated on: Wed, 05 August 2020 10:30]

Report message to a moderator

Previous Topic:Possible to convert part of STRING to an object's ID using a value converter?
Next Topic:Standalone XBase DSl with Compile Time Java Source (.java) and Jar (.class file) Dependencies
Goto Forum:
  


Current Time: Tue Apr 16 23:13:29 GMT 2024

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

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

Back to the top