File tree 2 files changed +2
-6
lines changed
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/failing
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ Co-maintainers:
16
16
17
17
2.12 .1 (not yet released )
18
18
19
- #356 : Serialization of inline classes under Kotlin 1.4 +
20
19
#402 : Remove implicitly - included `java .base ` dep in `module - info .java `
21
20
(reported by UkonnRa @github )
22
21
23
22
2.12 .0 (29 - Nov - 2020 )
24
23
25
24
#322 : Added extension methods to SimpleModule addSerializer and addDeserializer to support KClass arguments
26
25
that register the serializer /deserializer for both the java type and java class .
26
+ #356 : Kotlin 1.4 support
27
27
#385 : Add Moditect, source module info, to allow Kotlin module usage with Java Module system
28
28
- Add Gradle Module Metadata (https ://blog.gradle.org/alignment-with-gradle-module-metadata)
29
29
Original file line number Diff line number Diff line change 1
1
package com.fasterxml.jackson.module.kotlin.test.failing
2
2
3
- import com.fasterxml.jackson.dataformat.xml.JacksonXmlModule
4
- import com.fasterxml.jackson.dataformat.xml.XmlFactory
5
3
import com.fasterxml.jackson.dataformat.xml.XmlMapper
6
4
import com.fasterxml.jackson.module.kotlin.registerKotlinModule
7
- import javax.xml.stream.XMLInputFactory
8
5
import kotlin.test.Test
9
6
import kotlin.test.assertEquals
10
7
@@ -15,8 +12,7 @@ class TestGithub396 {
15
12
*/
16
13
@Test
17
14
fun testMissingConstructor () {
18
- val factory = XmlFactory (XMLInputFactory .newInstance())
19
- val mapper = XmlMapper (factory, JacksonXmlModule ()).registerKotlinModule()
15
+ val mapper = XmlMapper ().registerKotlinModule()
20
16
21
17
val xml = " <product><stuff></stuff></product>"
22
18
val product: Product = mapper.readValue(xml, Product ::class .java)
You can’t perform that action at this time.
0 commit comments