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

Reuse generated PropertyAccessor's and Entityinstantiator classes across EntityInstantiators and PersistentPropertyAccessorFactorys

    XMLWordPrintable

    Details

    • Sprint:
      Moore SR1

      Description

      When creating new Template API instances without reusing a converter instance, typically EntityInstantiators and PersistentPropertyAccessorFactory get re-created. Both types hold instance caches for runtime-generated classes (ClassGeneratingPropertyAccessorFactory, ClassGeneratingEntityInstantiator). Using the same domain type with both Template API instances leads to LinkageError as the second component attempts to register a class that is already known to the class loader.

      We should attempt to resolve an already loaded class when the instance-level cache misses a cache hit and we enter the code path to generate and declare a class.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mp911de Mark Paluch
              Reporter:
              mp911de Mark Paluch
              Last updater:
              Mark Paluch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: