Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » 2.13 nightly build on Oxygen 1a / Java 9 fails to Generate MWE2
2.13 nightly build on Oxygen 1a / Java 9 fails to Generate MWE2 [message #1774320] Thu, 12 October 2017 19:39 Go to next message
Aart de Vries is currently offline Aart de VriesFriend
Messages: 10
Registered: October 2017
Location: Calgary
Junior Member

I can reproduce this on an updated Oxygen, a fresh Eclipse Oxigen 1a with DSL tools, and a 'Java-only' Eclipse Oxygen 1a, in which I install the xtext 2.13 nightly build.

I just create a 'New Xtext' project (with the sample hello-greeting project), then go to the .mwe2 file, and select that as a 'Run As' target. See the attached error that is thrown in the Console.

This also happens with with my older DSL project that compiled fine in Oxygen on Java 8 / XText 2.12.

This is on Windows 10 Pro - 64bit with no Java 8 installs remaining.

See the attached file for the stack-trace.
  • Attachment: dump.txt
    (Size: 14.00KB, Downloaded 282 times)
Re: 2.13 nightly build on Oxygen 1a / Java 9 fails to Generate MWE2 [message #1774321 is a reply to message #1774320] Thu, 12 October 2017 20:13 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
can you please open a issue on github.com/eclipse/xtext-core for investigation

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: 2.13 nightly build on Oxygen 1a / Java 9 fails to Generate MWE2 [message #1774323 is a reply to message #1774321] Thu, 12 October 2017 20:29 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
likelycaused by old asm

java.lang.IllegalArgumentException
	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
	at org.eclipse.xtext.common.types.access.binary.asm.JvmDeclaredTypeBuilder.buildType(JvmDeclaredTypeBuilder.java:69)
	at org.eclipse.xtext.common.types.access.impl.DeclaredTypeFactory.doCreateType(DeclaredTypeFactory.java:115)
	at org.eclipse.xtext.common.types.access.impl.DeclaredTypeFactory.createType(DeclaredTypeFactory.java:95)
	


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: 2.13 nightly build on Oxygen 1a / Java 9 fails to Generate MWE2 [message #1774325 is a reply to message #1774323] Thu, 12 October 2017 20:40 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
workaround: remove asm from the build path (build.properties)

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: 2.13 nightly build on Oxygen 1a / Java 9 fails to Generate MWE2 [message #1774330 is a reply to message #1774325] Thu, 12 October 2017 22:35 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
https://github.com/eclipse/xtext-core/issues/501

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: 2.13 nightly build on Oxygen 1a / Java 9 fails to Generate MWE2 [message #1774390 is a reply to message #1774330] Fri, 13 October 2017 15:19 Go to previous messageGo to next message
Aart de Vries is currently offline Aart de VriesFriend
Messages: 10
Registered: October 2017
Location: Calgary
Junior Member

Herzlichen dank Christian.

Removing the asm-entry from the build.properties file resulted in a successful compile.

I hope you put this workaround in the release-notes for 2.13, so that people migrating their existing projects to Java9 run into this.

However I got the following warning messages, which you are probably aware of:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.eclipse.xtext.util.MergeableManifest (file:/C:/Users/aart/eclipse/plugins/org.eclipse.xtext.util_2.13.0.v20171005-0628.jar) to field java.util.jar.Manifest.attr
WARNING: Please consider reporting this to the maintainers of org.eclipse.xtext.util.MergeableManifest
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Kind regards,
Aart de Vries
Re: 2.13 nightly build on Oxygen 1a / Java 9 fails to Generate MWE2 [message #1774392 is a reply to message #1774390] Fri, 13 October 2017 15:34 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
yes i saw this. created https://github.com/eclipse/xtext-core/issues/506 so that it does not get forgotten

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Open an dsl file in xtext editor takes long time
Next Topic:Scoping with a custom VariableDeclaration in XBase
Goto Forum:
  


Current Time: Thu Apr 25 15:45:04 GMT 2024

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

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

Back to the top