Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Since Java 15: Unable to reference Java types in the same project #792

Closed
OLibutzki opened this issue Jul 12, 2022 · 11 comments
Closed

Since Java 15: Unable to reference Java types in the same project #792

OLibutzki opened this issue Jul 12, 2022 · 11 comments
Milestone

Comments

@OLibutzki
Copy link

Starting with Java 15 referencing Java types which are located in the same project as the DSL doesn't work anymore.

I created a repository containing a sample language and a concrete model using that language to demonstrate the issue: https://github.com/OLibutzki/HelloJava

There also is a GitHub Actions Matrix Build which shows that this seems to be broken starting with Java 15.

I am aware of eclipse/xtext#1982, but it's quite hard to extract, if this issue is covered somewhere.

@OLibutzki
Copy link
Author

can you build with -X

Yes, here are the results: https://github.com/OLibutzki/HelloJava/actions/runs/2656549071

likely this wont work for any non 8,11,17 version
Yes, the LTS versions are sufficient.

Is the referenced WIP not part of 2.28.0.M1 which I use in my project?

@cdietrich
Copy link
Member

no, as i am currently basically alone with zero motivation
it will take much longer for it to be done

[WARNING] source level should be in '1.1'...'1.8','9'...'14' (or '5.0'..'14.0'): 17

@cdietrich
Copy link
Member

@OLibutzki
Copy link
Author

Ok, thanks for helping that quickly, @cdietrich.

@OLibutzki
Copy link
Author

OLibutzki commented Sep 23, 2022

@cdietrich, I have tested the latest 2.29.0-SNAPSHOT with my example repo as you stated in eclipse/xtext#1982 (comment).

You can find the results here: https://github.com/OLibutzki/HelloJava/actions

After switching to the latest Snapshots the builds for Java 15 to 17 passed. The only thing I did was including the snapshot repositories and using 2.29.0-SNAPSHOT as you can see in OLibutzki/HelloJava@6b92eca.

Thanks for your efforts.

@nils-christian
Copy link

Hello @cdietrich and Hello @OLibutzki,

I might be mistaken here, but is it possible that this broke again? I forked Olivers example and updated it to 2.29.0.M1 (this was released a week ago, so I would assume that it would contain whatever fixed the issue). With said version the build breaks: https://github.com/nils-christian/HelloJava/actions/runs/3217240308/jobs/5259981216

Best regards

Nils

@cdietrich
Copy link
Member

cdietrich commented Oct 10, 2022

the branch has nothing todo with M1, as i dont get sufficient feedback i am hesitant to merge to to master so that it gets onto m1 (or any other milestone)
eclipse/xtext#1982

@nils-christian
Copy link

I see. Thank you, @cdietrich.

@cdietrich cdietrich added this to the Release_2.29 milestone Dec 10, 2022
@cdietrich
Copy link
Member

Xtext 2.29 for Java 17 is released

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants