Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1170

PreferredConstructor discovery fails for Kotlin types without primary constructor

    XMLWordPrintable

    Details

      Description

      Hello,

      I'm working with Spring Boot 2.0.0, Kotlin and Mockito.
      Since I upgraded my project from M3 to M4 (Spring 5.0.0-RC3 to RC4) I have some issue with it.

      I get a BeanCreationException based on:

      java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.reflect.jvm.ReflectJvmMapping.getJavaConstructor, parameter $receiver
      

      But, I didn't change my code, so can possibility went wrong in the process ?
      You can find details and code in the stackoverflow issue.

      Thank you.

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            romainbsl Romain Boisselle
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: