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

ClassGeneratingPropertyAccessorFactory considers only first 16 immutable Kotlin properties

    Details

      Description

      ClassGeneratingPropertyAccessorFactory considers only the first 16 nullable properties of a Kotlin data class when updating immutable properties. 

      This is, because we're generating bytecode using SIPUSH which is intended for short (16 bit numbers). The bitmask is exceeded with the first 16 bit slots and the 17th property does not fit into the bitmask any longer.

      We should rather use runtime-constants using LDC to preserve the full precision of 32 bit integers.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mp911de Mark Paluch
                Reporter:
                mp911de Mark Paluch
                Last updater:
                Christoph Strobl
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: