METAMODEL-242: Fixed
authorKasper Sørensen <i.am.kasper.sorensen@gmail.com>
Sun, 24 Apr 2016 20:56:57 +0000 (13:56 -0700)
committerKasper Sørensen <i.am.kasper.sorensen@gmail.com>
Sun, 24 Apr 2016 20:56:57 +0000 (13:56 -0700)
Closes #93

CHANGES.md
core/src/main/java/org/apache/metamodel/util/LegacyDeserializationObjectInputStream.java

index 9be1b35..546f31c 100644 (file)
@@ -2,6 +2,7 @@
 
  * [METAMODEL-235] - Fixed a bug related to handling of null or missing values in ElasticSearch using REST client.
  * [METAMODEL-225] - Fixed support for nested objects and arrays in ElasticSearch using REST client.
+ * [METAMODEL-242] - Fixed issue when de-serializing old enum-instances of FunctionType.
 
 ### Apache MetaModel 4.5.2
 
index 289f823..c4d4570 100644 (file)
@@ -235,7 +235,7 @@ public class LegacyDeserializationObjectInputStream extends ObjectInputStream {
             break;
         case CLASS_NAME_FUNCTION_TYPE:
             if (isEnumExpected(objectStreamClass)) {
-                final ObjectStreamClass legacyOperatorTypeResult = ObjectStreamClass.lookup(LegacyOperatorType.class);
+                final ObjectStreamClass legacyOperatorTypeResult = ObjectStreamClass.lookup(LegacyFunctionType.class);
                 return legacyOperatorTypeResult;
             }
             break;