net.openhft.chronicle.core.util.ReadResolvable Java Examples

The following examples show how to use net.openhft.chronicle.core.util.ReadResolvable. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SerializationBuilder.java    From Chronicle-Map with Apache License 2.0 5 votes vote down vote up
private static void checkNonMarshallableEnum(Class c) {
    if (Enum.class.isAssignableFrom(c) && (Marshallable.class.isAssignableFrom(c) ||
            ReadResolvable.class.isAssignableFrom(c))) {
        throw new IllegalArgumentException(c + ": since Chronicle Map 3.9.0, enum marshaller " +
                "shouldn't be a Java enum and implement " + Marshallable.class.getName() +
                " or " + ReadResolvable.class.getName() + ". There are problems with " +
                "serializing/deserializing them in Chronicle Map header. Emulate enums by " +
                "static final fields");
    }
}