Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.13.0 RC 3
-
None
-
JDK >= 12
-
-
8409844bd66f0186ed227a58db687f0d748ada22 (qt/qtbase/dev) c9635b99df4e8cc6ee16201a6840db024946b7a9 (qt/qtbase/5.15)
Description
Trying to compile any qt project that uses the directive
CONFIG += java
is bound to fail when using the latest JDK.
this is because in the file https://code.qt.io/cgit/qt/qtbase.git/tree/mkspecs/features/java.prf#n23 the source and target compatibility is hardcoded to 6 which is no longer supported by javac.
I found this bug when trying to compile qt on arch because the file https://code.qt.io/cgit/qt/qtbase.git/tree/src/android/jar/jar.pro contains such a directive, which means that qt cannot be compiled with the latest jdk.
Attachments
Issue Links
- is duplicated by
-
QTBUG-86282 Use more recent JDK version to build Qt for Android
- Closed