Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » javadoc Problem with code compiled by Xtend 2.5.1
javadoc Problem with code compiled by Xtend 2.5.1 [message #1240337] Thu, 06 February 2014 08:54 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 347
Registered: July 2009
Senior Member
Hi all,

after having updated Xtext and Xtend from 2.5.0 to 2.5.1 some Jenkins builds fail because javadoc thinks the generated Java code was illegal.

[ant] Javadoc started
[ant] /var/lib/jenkins/.../xtend-gen/.../CollectionUtils.java:27: illegal start of expression
[ant]       _xblockexpression = (IterableExtensions.<Object>filter(unfiltered, new Function1<Object,Boolean>() {
[ant]                                               ^
[ant] /var/lib/jenkins/.../xtend-gen/.../ControllerExtensions.java:217: illegal start of expression
[ant]       _xblockexpression = (Iterables.<Controller>concat(_filter, _filter_1));
[ant]                                      ^
[ant] /var/lib/jenkins/.../xtend-gen/.../ModelJoinExtensions.java:689: illegal start of expression
[ant]       _xblockexpression = (IterableExtensions.<OneToManyRelationship>findFirst(_filter, _function));
[ant]                                               ^
[ant] /var/lib/jenkins/.../xtend-gen/.../ModelJoinExtensions.java:727: illegal start of expression
[ant]       _xblockexpression = (IterableExtensions.<DerivedField>findFirst(_filter, _function));
[ant]                                               ^


Interestingly the build itself works without problems.
Is this a javadoc bug then? Has anybody seen something like this?

I tried to increase the Java source level in the javadoc ant task (changed source="1.6" to source="1.7"), but this did not change anything.

Thanks in advance,

Axel

[Updated on: Thu, 06 February 2014 08:55]

Report message to a moderator

Re: javadoc Problem with code compiled by Xtend 2.5.1 [message #1240399 is a reply to message #1240337] Thu, 06 February 2014 11:10 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13667
Registered: July 2009
Senior Member
Hi,

this is https://bugs.eclipse.org/bugs/show_bug.cgi?id=410797


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: javadoc Problem with code compiled by Xtend 2.5.1 [message #1240400 is a reply to message #1240399] Thu, 06 February 2014 11:11 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13667
Registered: July 2009
Senior Member
And i dont understand what this has todo with javadoc

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: javadoc Problem with code compiled by Xtend 2.5.1 [message #1240407 is a reply to message #1240400] Thu, 06 February 2014 11:34 Go to previous message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 347
Registered: July 2009
Senior Member
Thanks, Christian.

My Jenkins instance had an old 6 JDK version configured.
Updated to 7u51 and it all works now.
Previous Topic:Adding another file into the generated src-gen folder with Xtext-xtend compiler
Next Topic:Cross references in DSLs of xtext
Goto Forum:
  


Current Time: Thu Dec 03 08:37:13 GMT 2020

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

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

Back to the top