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

Error when compiling with OpenJDK 23 #1644

Open
4 tasks done
Smoerrebroed opened this issue Nov 28, 2024 · 1 comment · May be fixed by #1645
Open
4 tasks done

Error when compiling with OpenJDK 23 #1644

Smoerrebroed opened this issue Nov 28, 2024 · 1 comment · May be fixed by #1645
Assignees
Labels

Comments

@Smoerrebroed
Copy link

Smoerrebroed commented Nov 28, 2024

Checklist

  • I checked other issues already, but found no answer/solution
  • I checked the documentation and wiki, but found no answer/solution
  • I am running the latest version and the issue still occurs
  • I am sure that this issue is about SteVe (and not about the charging station software or something unrelated to SteVe)

Specifications

SteVe Version     : 3.7.1 but also happens with current Git version
Operating system  : Arch Linux
JDK               : OpenJDK 23
Database          : MariaDB 11.x (not part of the issue)

Expected Behavior

./mvnw package produces an executable version of SteVe

Actual Behavior

It throws lots of errors all pointing to some missing dependency/declaration like the following:

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/xxx/Projekte/steve/src/main/java/de/rwth/idsg/steve/Application.java:[41,9] Symbol nicht gefunden
Symbol: Variable log
Ort: Klasse de.rwth.idsg.steve.Application
[ERROR] /home/xxx/Projekte/steve/src/main/java/de/rwth/idsg/steve/Application.java:[41,77] Symbol nicht gefunden
Symbol: Methode getProfile()
Ort: Variable sc von Typ de.rwth.idsg.steve.SteveConfiguration
...

Steps to Reproduce the Problem

  1. Install/activate OpenJDK 23
  2. Clone SteVe
  3. ./mvnw package

Additional context

I switched to OpenJDK 21 and that works like it used to. Also, OpenJDK 23 has no issues running the .jar compiled on OpenJDK 21.

@goekay goekay added the bug label Nov 29, 2024
@goekay goekay self-assigned this Nov 29, 2024
goekay added a commit that referenced this issue Nov 29, 2024
builds were working without this until jdk 23 (for whatever reason).
it is part of lombok documentation to use this anyways: https://projectlombok.org/setup/maven
so we are adding it.
@goekay goekay linked a pull request Nov 29, 2024 that will close this issue
@goekay
Copy link
Member

goekay commented Nov 29, 2024

hey, thanks for this report. it is indeed a problem. thankfully, the fix was simple. please see the respective PR, test and give feedback that it resolves your issue.

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

Successfully merging a pull request may close this issue.

2 participants