How to Configure Instantiation of Java SE 7 Indirect Collection Classes in Java SE 8 (Doc ID 2107847.1)

Last updated on FEBRUARY 24, 2016

Applies to:

Oracle TopLink - Version 12.2.1.0.0 and later
Information in this document applies to any platform.

Goal

Using EclipseLink 2.6.1, an error occurs when de-serializing objects containing references to EclipseLink indirect collection objects on a J2SE 7 JVM, which were originally instantiated and serialized on a J2SE 8 JVM.

EclipseLink 2.6.1 is using different code for IndirectList class based on the java version.

 - Java8 environment uses:
      org.eclipse.persistence.internal.indirection.jdk8.IndirectList
 - Java7 environment uses:
     org.eclipse.persistence.internal.indirection.IndirectList

 This is causing problems while de-serializing objects.

How to use org.eclipse.persistence.internal.indirection.IndirectList for both Java versions ?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms