I am using JDK 15.0.1 and try to save a record. I got an error in the microstream code. The exception in the statement if (declaringClass.isRecord())
is thrown with text can't get field offset on a record (preview):.
In the documentation, it is stated that records are supported since JDK 14 (see https://manual.docs.microstream.one/data-store/faq/java-features#can-microstream-handle-records).
if (f == null) {
throw new NullPointerException();
}
Class<?> declaringClass = f.getDeclaringClass();
if (declaringClass.isHidden()) {
throw new UnsupportedOperationException("can't get field offset on a hidden class: " + f);
}
if (declaringClass.isRecord()) {
throw new UnsupportedOperationException("can't get field offset on a record (preview): " + f);
}
return theInternalUnsafe.objectFieldOffset(f);
}
I use the following version of microstream
implementation 'one.microstream:storage.embedded:04.00.00-MS-GA'
Did I do something wrong?
Sincerely