Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Java 8 @NonNull Annotations
Java 8 @NonNull Annotations [message #1718425] Wed, 23 December 2015 14:48 Go to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

The Java 7 annotations for @NonNull, @Nullable were useable with Xtend.

But the equivalent Java 8 annotations report incorrect positioning of
the annotations. Is there no support or is some different usage needed
to avoid confusion with active annotations? (Using M4)

Regards

Ed Willink
Re: Java 8 @NonNull Annotations [message #1718478 is a reply to message #1718425] Thu, 24 December 2015 10:36 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
hi,

this happens in the 2.9.x release as well. can you file a bug.
looks like xtend does misscheck the

@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})

target

(if i see that correct)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Java 8 @NonNull Annotations [message #1718480 is a reply to message #1718478] Thu, 24 December 2015 10:42 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
p.s.: which exact source/implementation for the annotations do you use (there are a bunch around)

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Java 8 @NonNull Annotations [message #1718528 is a reply to message #1718480] Sat, 26 December 2015 09:49 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
HI

I've moved from the once official JDT Java 7 annotations (sustained as
org.eclipse.ocl.jdt.annotation7 1.0) to the official Mars M4 JDT Java 8
annotations (org.eclipse.jdt.annotation 2.0.100).

I'm just really puzzled that it doesn't work. Xtend has many Java 8
tweaks, yet it doesn't support annotations.

Regards

Ed Willink


On 24/12/2015 10:42, Christian Dietrich wrote:
> p.s.: which exact source/implementation for the annotations do you use
> (there are a bunch around)
Re: Java 8 @NonNull Annotations [message #1718529 is a reply to message #1718478] Sat, 26 December 2015 09:56 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
On 24/12/2015 10:36, Christian Dietrich wrote:
> this happens in the 2.9.x release as well. can you file a bug.
Er... No. I cannot find the Xtend Bugzilla component.

Perhaps Xtext, Xtend, Xpand, MWE might like to follow the
decontainerisation example of many other modeling projects so that they
are visible in

https://bugs.eclipse.org/bugs/enter_bug.cgi?classification=Modeling

Xtext at least appends itself to the TMF description but the locations
of other projects, particularly their "2" suffixes is opaque.

Regards

Ed Willink
Re: Java 8 @NonNull Annotations [message #1718532 is a reply to message #1718529] Sat, 26 December 2015 11:11 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Xtend is a top level component (same as tmf)

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Java 8 @NonNull Annotations [message #1718539 is a reply to message #1718532] Sat, 26 December 2015 14:51 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
On 26/12/2015 11:11, Christian Dietrich wrote:
> Xtend is a top level component (same as tmf)
But not in Bugzilla. See
https://bugs.eclipse.org/bugs/enter_bug.cgi?classification=Modeling

Acceleo, OCL, Papyrus, QVTd, QVTo, Sirius etc all appear after
decontainerizing but TMF ... Xtext survives.

Regards

Ed Willink
Re: Java 8 @NonNull Annotations [message #1718541 is a reply to message #1718539] Sat, 26 December 2015 16:05 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
For xtext this is true but not for xtend https://bugs.eclipse.org/bugs/enter_bug.cgi?classification=__all

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Java 8 @NonNull Annotations [message #1718552 is a reply to message #1718541] Sun, 27 December 2015 06:40 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
On 26/12/2015 16:05, Christian Dietrich wrote:
> For xtext this is true but not for xtend
> https://bugs.eclipse.org/bugs/enter_bug.cgi?classification=__all
Ah!. Confusing. I use Xtend as distributed as parts of Xpand2 and Xtext
both of which are Modeling projects, but Xtend is not.
Previous Topic:Modifying Xtext Document renders Eclipse non-responsive
Next Topic:trigger generation of seperate DSL file (expressing a DB schema)
Goto Forum:
  


Current Time: Thu Apr 25 21:26:04 GMT 2024

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

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

Back to the top