qtjambi icon indicating copy to clipboard operation
qtjambi copied to clipboard

6.4 doesn't build

Open mchistovib opened this issue 3 years ago • 1 comments

Describe the bug When I try to build jambi for qt 6.4, I get this error:

jar_init:

compile-impl:
     [echo] Compiling java classes: C:\Users\max\source\repos\qtjambi\src\java/qtjambi.httpserver excludes:
     [echo] Compiling java classes: C:\Users\max\source\repos\qtjambi\6.4.0\build\generator\out\java\qtjambi.httpserver;C:\Users\max\source\repos\qtjambi\src\java\qtjambi-modules\qtjambi.httpserver classpath: qtjambi-6.4.0.jar,qtjambi-network-6.4.0.jar,qtjambi-websockets-6.4.0.jar
    [javac] Compiling 8 source files to C:\Users\max\source\repos\qtjambi\6.4.0\build\java\qtjambi.httpserver
    [javac] C:\Users\max\source\repos\qtjambi\6.4.0\build\generator\out\java\qtjambi.httpserver\io\qt\httpserver\QHttpServerResponder.java:445: error: method writeStatusLine(StatusCode) is already defined in class QHttpServerResponder
    [javac]         public final void writeStatusLine(io.qt.httpserver.QHttpServerResponder.StatusCode status){
    [javac]                           ^
    [javac] C:\Users\max\source\repos\qtjambi\6.4.0\build\generator\out\java\qtjambi.httpserver\io\qt\httpserver\QHttpServerResponder.java:450: error: method writeStatusLine() is already defined in class QHttpServerResponder
    [javac]         public final void writeStatusLine(){
    [javac]                           ^
    [javac] C:\Users\max\source\repos\qtjambi\6.4.0\build\generator\out\java\qtjambi.httpserver\io\qt\httpserver\QHttpServerResponder.java:441: error: no suitable method found for writeStatusLine(StatusCode,QPair<Byte,Byte>)
    [javac]             writeStatusLine(io.qt.httpserver.QHttpServerResponder.StatusCode.Ok, version);
    [javac]             ^
    [javac]     method QHttpServerResponder.writeStatusLine() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac]     method QHttpServerResponder.writeStatusLine(StatusCode) is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac]     method QHttpServerResponder.writeStatusLine(QPair<Byte,Byte>) is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] C:\Users\max\source\repos\qtjambi\6.4.0\build\generator\out\java\qtjambi.httpserver\io\qt\httpserver\QHttpServerResponder.java:446: error: no suitable method found for writeStatusLine(StatusCode,QPair<Byte,Byte>)
    [javac]             writeStatusLine(status, new io.qt.core.QPair<>((byte)1, (byte)1));
    [javac]             ^
    [javac]     method QHttpServerResponder.writeStatusLine() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac]     method QHttpServerResponder.writeStatusLine(StatusCode) is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac]     method QHttpServerResponder.writeStatusLine(QPair<Byte,Byte>) is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] C:\Users\max\source\repos\qtjambi\6.4.0\build\generator\out\java\qtjambi.httpserver\io\qt\httpserver\QHttpServerResponder.java:451: error: no suitable method found for writeStatusLine(StatusCode,QPair<Byte,Byte>)
    [javac]             writeStatusLine(io.qt.httpserver.QHttpServerResponder.StatusCode.Ok, new io.qt.core.QPair<>((byte)1, (byte)1));
    [javac]             ^
    [javac]     method QHttpServerResponder.writeStatusLine() is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac]     method QHttpServerResponder.writeStatusLine(StatusCode) is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac]     method QHttpServerResponder.writeStatusLine(QPair<Byte,Byte>) is not applicable
    [javac]       (actual and formal argument lists differ in length)
    [javac] C:\Users\max\source\repos\qtjambi\6.4.0\build\generator\out\java\qtjambi.httpserver\io\qt\httpserver\QHttpServer.java:8: error: QHttpServer is not abstract and does not override abstract method missingHandler(QHttpServerRequest,QTcpSocket) in QAbstractHttpServer
    [javac] public final class QHttpServer extends io.qt.httpserver.QAbstractHttpServer
    [javac]              ^

System (please complete the following information):

  • OS: Windows 10
  • Java version 11 Zulu
  • QtJambi version 6.4
  • Qt version 6.4
  • Compiler used msvc2019

mchistovib avatar Oct 11 '22 19:10 mchistovib

That's an error related to version v6.3.4. Qt 6.4 was beta when I released this QtJambi version. Meanwhile, Qt 6.4 API changed at a few positions causing these incompatibilities. I am preparing the next QtJambi release for Qt 6.4.

omix avatar Oct 11 '22 20:10 omix

This issue is solved with 6.4.0.

omix avatar Oct 15 '22 11:10 omix