Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xatkit cannot be built with JDK9, 10, and 12 #6

Open
gdaniel opened this issue Jul 22, 2018 · 5 comments
Open

Xatkit cannot be built with JDK9, 10, and 12 #6

gdaniel opened this issue Jul 22, 2018 · 5 comments
Assignees
Labels
bug Something isn't working Low Priority

Comments

@gdaniel
Copy link
Member

gdaniel commented Jul 22, 2018

These JDKs introduce Modules, that are defined in java.lang.module, and conflict with Xatkit Modules.
In addition, the build prints several warning related to illegal reflective accesses from xcore and xtext.

@gdaniel gdaniel self-assigned this Jul 22, 2018
@gdaniel
Copy link
Member Author

gdaniel commented Aug 16, 2018

Support for JDK9 and JDK10 is left for a future release (current release: v1.0.0).

@gdaniel
Copy link
Member Author

gdaniel commented Aug 16, 2018

This support implies to rename module packages and classes, and handle illegal reflective calls

@gdaniel
Copy link
Member Author

gdaniel commented Nov 19, 2018

This needs to be check after the renaming of Module-related classes to Platform (see xatkit-bot-platform/xatkit-runtime#172)

@gdaniel
Copy link
Member Author

gdaniel commented May 1, 2019

This issue has been reported by @nadiana18 after the Xatkit tutorial, relevant part of the log provided below.
Java version: 12
OS: macos

[INFO] --- xtext-maven-plugin:2.9.2:generate (default) @ common ---
[INFO] Encoding: UTF-8
[INFO] Compiler source level: 1.8
[INFO] Compiler target level: 1.8
[INFO] Using common types.
[INFO] Collecting source models.
[INFO] Installing type provider.
[INFO] Generating stubs into [...]
[INFO] Compiling stubs located in [...]
[INFO] Installing type provider for stubs.
[INFO] Validate and generate.
[ERROR] resource is empty: java:/Objects/java.lang.Object
java.lang.IllegalStateException
at org.eclipse.xtext.common.types.access.impl.AbstractClassMirror.getEObject (AbstractClassMirror.java:93)
at org.eclipse.xtext.common.types.access.TypeResource.getEObject (TypeResource.java:90)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject (ResourceSetImpl.java:223)
at org.eclipse.emf.ecore.util.EcoreUtil.resolve (EcoreUtil.java:213)
at org.eclipse.emf.ecore.util.EcoreUtil.resolve (EcoreUtil.java:269)
at org.eclipse.xtext.common.types.access.TypeResource.resolveJavaObjectURIProxy (TypeResource.java:169)
at org.eclipse.xtext.common.types.impl.JvmTypeReferenceImplCustom.eResolveProxy (JvmTypeReferenceImplCustom.java:32)
at org.eclipse.xtext.common.types.impl.JvmParameterizedTypeReferenceImpl.getType (JvmParameterizedTypeReferenceImpl.java:111

This issue seems to be related. The discussion mention Java 10 support from Tycho, there is maybe a plugin dependency to upgrade.

@gdaniel gdaniel changed the title Jarvis cannot be built with JDK9 and JDK10 Jarvis cannot be built with JDK9, 10, and 12 May 1, 2019
@gdaniel gdaniel changed the title Jarvis cannot be built with JDK9, 10, and 12 Xatkit cannot be built with JDK9, 10, and 12 Aug 18, 2019
@gdaniel gdaniel transferred this issue from xatkit-bot-platform/xatkit-runtime Aug 18, 2019
@gdaniel gdaniel added the bug Something isn't working label Aug 18, 2019
@gdaniel
Copy link
Member Author

gdaniel commented Mar 4, 2020

Also related to xatkit-bot-platform/xatkit-runtime#250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Low Priority
Projects
None yet
Development

No branches or pull requests

1 participant