Bug#1026617: libjt400-java: FTBFS: [javac] /<<PKGBUILDDIR>>/java8/com/ibm/as400/data/RecordFormatDocument.java:149: error: reference to Record is ambiguous

Hans Joachim Desserud debian at desserud.org
Wed Dec 21 11:07:24 GMT 2022


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_ambiguous_record_import.patch
Type: text/x-diff
Size: 800 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20221221/83ba01cb/attachment.patch>


More information about the pkg-java-maintainers mailing list