@@ -1098,14 +1098,14 @@ class JsonCodecMakerSpec extends WordSpec with Matchers {
10981098 " serialize and deserialize case classes with private primary constructor if it can be accessed" in {
10991099 verifySerDeser(PrivatePrimaryConstructor .codec, PrivatePrimaryConstructor (" 1" ), " {\" i\" :1}" .getBytes(" UTF-8" ))
11001100 }
1101- " don't generate codec for unsupported classes" in {
1101+ " don't generate codecs for unsupported classes" in {
11021102 assert(intercept[TestFailedException ](assertCompiles {
11031103 """ JsonCodecMaker.make[java.util.Date](CodecMakerConfig())"""
11041104 }).getMessage.contains {
11051105 """ No implicit 'com.github.plokhotnyuk.jsoniter_scala.core.JsonValueCodec[_]' defined for 'java.util.Date'."""
11061106 })
11071107 }
1108- " don't generate codec for too deeply defined case classes" in {
1108+ " don't generate codecs for too deeply defined case classes" in {
11091109 assert(intercept[TestFailedException ](assertCompiles {
11101110 """ val codecOfFoo = () => {
11111111 | case class Foo(i: Int)
@@ -1117,6 +1117,15 @@ class JsonCodecMakerSpec extends WordSpec with Matchers {
11171117 |it as a top-level object or directly inside of another class or object.""" .stripMargin.replace('\n ' , ' ' )
11181118 })
11191119 }
1120+ " don't generate codecs for case classes with multiple parameter lists in a primary constructor" in {
1121+ assert(intercept[TestFailedException ](assertCompiles {
1122+ """ case class MultiListOfArgs(i: Int)(l: Long)
1123+ |JsonCodecMaker.make[MultiListOfArgs](CodecMakerConfig())""" .stripMargin
1124+ }).getMessage.contains {
1125+ """ 'MultiListOfArgs' has a primary constructor with multiple parameter lists.
1126+ |Please consider using a custom implicitly accessible codec for this type.""" .stripMargin.replace('\n ' , ' ' )
1127+ })
1128+ }
11201129 }
11211130 " JsonCodecMaker.enforceCamelCase" should {
11221131 " transform snake_case names to camelCase" in {
0 commit comments