You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @davecramer , Thanks for update . Can you please let me know what was the exact issue and also please let me know which jdk version I need to use? I have tried with jdk-8 here.
@shivsrivastava , you attempt building stale version, so please figure out what goes wrong.
REL42.2.20 misses this change that is vital for it to build: #2205
As a workaround you could execute ./gradlew :postgresql:removeTypeAnnotations before building 42.2.20, or you could build the latest one on the 42.2 branch which is 42.2.27.
Package artifact id: pgjdbc
source code url: https://github.com/pgjdbc/pgjdbc/tree/REL42.2.20
Issue Description: Failing while building postgresql version 42.2.20 using ./gradlew build (postgresql:42.2.20)
JDK Version: 1.8
Build CMD: ./gradlew build
MVN Version: NA
gradle version - 8.x
Error Log:
2024-04-29T02:02:06.131+0530 [INFO] [org.gradle.api.internal.tasks.compile.JdkJavaCompiler] Compiling with JDK Java compiler API.
2024-04-29T02:02:06.685+0530 [ERROR] [system.err] C:\code\Code-Latest\postgresql42.2.20\code\pgjdbc\pgjdbc-jre6\build\jcp\preprocessMain\org\postgresql\jre7\sasl\ScramAuthenticator.java:60: error: diamond operator is not supported in -source 1.6
2024-04-29T02:02:06.689+0530 [ERROR] [system.err] List mechanisms = new ArrayList<>();
2024-04-29T02:02:06.691+0530 [ERROR] [system.err] ^
2024-04-29T02:02:06.696+0530 [ERROR] [system.err] (use -source 7 or higher to enable diamond operator)
2024-04-29T02:02:06.991+0530 [ERROR] [system.err] 1 error
2024-04-29T02:02:06.995+0530 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Compile Java for :postgresql-jre6:compileJava' completed
attachement: build log attached (jdk 1.8)
Failed_java_8.txt
OS: windows 10
The text was updated successfully, but these errors were encountered: