eclipse-store / store

High-Performance Java-Native-Persistence. Store and load any Java Object Graph or Subgraphs partially, Relieved of Heavy-weight JPA. Microsecond Response Time. Ultra-High Throughput. Minimum of Latencies. Create Ultra-Fast In-Memory Database Applications & Microservices.
https://eclipsestore.io/
Eclipse Public License 2.0
206 stars 18 forks source link

Potential Documentation Discrepancy #309

Open marcelbaumann opened 1 month ago

marcelbaumann commented 1 month ago

I am using Java records in my model. The documentation seems to have a discrepancy.

Under Java Record the documentation states the step to enable record support.

Under Eclipse Store Modules the documentation provides the list of eclipse store modules.

But the module referenced for the --add-exports java.base/jdk.internal.misc=org.eclipse.serializer.base is not part of the list of modules.

It would be great if both information are congruent. It would also be great if the handling of Java records is described in more details.

hg-ms commented 1 month ago

The module org.eclipse.serializer.base is part of the Eclipse Serializer project that is used for serialization by Eclipse Store. You are right, we should add a list of the serializers modules somewhere.

Regarding the usage of Java Records there is no special handling except the need to export jdk.internal.misc so that jdk.internal.misc.Unsafe can be used due to the java module system.