Ryan Smith
03/29/2023, 2:56 PMjavax.xml.bind
(which I think is the Oracle JAXB implementation), while the latter is based on the Jakarta
JAXB implementation from The Eclipse Project.
Are there any license or other issues with using the jaxb
converter (and, by extension, javax.xml.bind
)? I'd prefer the Jakarta
-based converter, but I can't find an artifact for it on Maven.
I suppose a more general question is "which is the recommended XML converter to use with Retrofit?"jw
03/29/2023, 3:14 PMRyan Smith
03/29/2023, 3:18 PMjw
03/29/2023, 3:18 PMRyan Smith
03/29/2023, 3:18 PMjw
03/29/2023, 3:19 PMRyan Smith
03/29/2023, 3:19 PMjw
03/29/2023, 3:21 PMRyan Smith
03/29/2023, 3:22 PMRyan Smith
03/29/2023, 3:25 PMjw
03/29/2023, 4:14 PMRyan Smith
03/29/2023, 4:18 PMasConverterFactory
from this dependency?
"com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0"
jw
03/29/2023, 4:23 PMRyan Smith
03/29/2023, 4:24 PMkotlinx.serialization
.
Here's the short version:
org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
File being compiled: /home/rsmit/repos/github/koji-buildroot-resolver/src/jvmMain/kotlin/data/net/xmlrpc/MethodCall.kt
The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:49)
jw
03/29/2023, 5:29 PMRyan Smith
03/29/2023, 5:32 PMjw
03/29/2023, 5:33 PMRyan Smith
03/29/2023, 5:34 PMjw
03/29/2023, 5:36 PMRyan Smith
03/29/2023, 5:37 PMjw
03/29/2023, 5:37 PMRyan Smith
03/29/2023, 5:39 PMXmlSerialName
one must provide a value for namespace
and prefix
even if they're empty strings.
@XmlSerialName("methodCall", "", "")
instead of @XmlSerialName("methodCall")
ERROR_EXPR 'Stub expression for default value of namespace' type=kotlin.String
Kirill Grouchnikov
03/29/2023, 6:04 PMjw
03/29/2023, 6:17 PMKirill Grouchnikov
03/29/2023, 6:19 PMRyan Smith
03/29/2023, 6:22 PMKirill Grouchnikov
03/29/2023, 6:22 PMjw
03/29/2023, 6:23 PMRyan Smith
03/29/2023, 6:24 PMkotlinx.serialization
came upKonstantin Tskhovrebov
03/29/2023, 7:07 PMRyan Smith
03/31/2023, 4:33 PMlink: Stirng?
but don't see any corresponding configuration for handling nulls. Are fields like link
only null
if they are omitted? If something like <link>null</link>
appears in the XML?nil
is a possible value, and I'm not seeing a way to configure my XmlFormat
to handle that as null
<nil/>
, which I can represent with an object
.