tags 1026617 patch
thanks
[javac] both class com.ibm.as400.access.Record in
com.ibm.as400.access and class java.lang.Record in java.lang match
[javac]
/<<PKGBUILDDIR>>/java8/com/ibm/as400/data/RecordFormatDocument.java:1375:
error: reference to Record is ambiguous
Looks like the ambiguity stems from the new Record class introduced in
new JDKS which hit when rebuilt with JDK 17. See the attached patch
which adds an explicit import to the "local" Record class, which has
been the one imported up until now.
With this patch in place, the package builds successfully again on
Debian Sid.
--
mvh / best regards
Hans Joachim Desserud
http://desserud.org
Description: Explicit import for Record
Since this code predates java.lang.Record in the JDK, I'm going to assume
it refers to its own class
---
Forwarded: no
Last-Update: 2022-12-21
--- libjt400-java-9.4.orig/src/com/ibm/as400/data/RecordFormatDocument.java
+++ libjt400-java-9.4/src/com/ibm/as400/data/RecordFormatDocument.java
@@ -14,6 +14,7 @@
package com.ibm.as400.data;
import com.ibm.as400.access.*;
+import com.ibm.as400.access.Record;
import java.io.File;
import java.io.FileOutputStream;
--- libjt400-java-9.4.orig/src/com/ibm/as400/data/RfmlRecordFormat.java
+++ libjt400-java-9.4/src/com/ibm/as400/data/RfmlRecordFormat.java
@@ -26,6 +26,7 @@ import java.util.TimeZone;
import java.util.Vector;
import com.ibm.as400.access.*;
+import com.ibm.as400.access.Record;
/**