Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Java 8 compatibility for Guice
Java 8 compatibility for Guice [message #1773893] Fri, 06 October 2017 08:21 Go to next message
Wolf Rost is currently offline Wolf RostFriend
Messages: 4
Registered: June 2017
Junior Member
Hello everbody,

i am facing the same problem as descripted in this issue (https://github.com/eclipse/xtext-core/issues/393) on github.

It looks like Guice 3 has compatibility problems when using Java 8.
Since xtext 2.12 is using Guice 3, I often get the following exception:
Toggle Spoiler


Is there a workaround for this problem or plans to move to Guice 4?

Thank you in advance.
Re: Java 8 compatibility for Guice [message #1773894 is a reply to message #1773893] Fri, 06 October 2017 08:23 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 11367
Registered: July 2009
Senior Member
the workaround is not to make errors in your guice bindings ... ;)

Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: Java 8 compatibility for Guice [message #1774069 is a reply to message #1773894] Tue, 10 October 2017 07:43 Go to previous message
Wolf Rost is currently offline Wolf RostFriend
Messages: 4
Registered: June 2017
Junior Member
The problem was that we called the method "createInjectorAndDoEMFRegistration" in two different servlets to get the injector.
Previous Topic:Build triggered when opening file in language implemented by Xtext
Next Topic:Xtext Code Navigation
Goto Forum:
  


Current Time: Mon Nov 20 21:23:07 GMT 2017

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

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