-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
QtJambi does not build from sources using JDK 21 #168
Comments
I think, this is expected for QList:
And this for QStack:
|
|
Why did you patch |
Yes, Ant says that |
ok, I added the code. and will publish it for Qt 6.6 as soon as it is available. |
Also QtJambi 6.6.0 does not build from sources using JDK 21 because of |
I don't understand what's wrong with |
Nevertheless, |
I'm compiling the generated Java code with JDK21 without any issue. |
I can confirm this and it's not avoidable. |
I get this To fix this issue wile building I removed |
In fact, |
Ok, I found a way to let a JDK21-compiled qtjambi library be compatible for <=JDK20. |
QtJambi 6.6.1 has not different sources for JDK >=21 and <21. |
Describe the bug
QtJambi does not build from sources using JDK 21 because JDK 21 adds some methods to
java.util.List
andjava.util.Deque
.To Reproduce
Steps to reproduce the behavior:
[javac] /home/wolfgang/qtjambi/src/java/modules/qtjambi/Qt6/io/qt/core/QStack.java:44: Fehler: Die Typen Deque<E#1> und List<E#2> sind inkompatibel.
[javac] public class QStack extends QList implements Deque
[javac] ^
[javac] Klasse QStack erbt nicht verwandte Standardwerte für reversed() von Typen Deque und List
[javac] Dabei sind E#1,E#2,T Typvariablen:
[javac] E#1 erweitert Object, deklariert in Schnittstelle Deque
[javac] E#2 erweitert Object, deklariert in Schnittstelle List
[javac] T erweitert Object, deklariert in Klasse QStack
[javac] 1 Fehler
Expected behavior
QtJambi should build from sources using latest LTS JDK 21.
System (please complete the following information):
Patch
The following patch.txt could help to fix the issue. It also fixes a problem with the ant build.
To make the QtJambi build a success I also had to patch one of the generated classes while building...
The text was updated successfully, but these errors were encountered: