Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-79094

Qt cannot be build with JDK version >=12

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.2
    • 5.13.0 RC 3
    • Build tools: qmake
    • None
    • JDK >= 12
    • Android
    • 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

          For Gerrit Dashboard: QTBUG-79094
          # Subject Branch Project Status CR V

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              christianromberg Christian Romberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes