Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.4.1, 3.5.0, 4.0.0
Description
As perĀ SPARK-44634 another unsupported feature of bean encoder is when the superclass of the bean has generic type arguments. For example:
class JavaBeanWithGenericsA<T> { public T getPropertyA() { return null; } public void setPropertyA(T a) { } } class JavaBeanWithGenericBase extends JavaBeanWithGenericsA<String> { } Encoders.bean(JavaBeanWithGenericBase.class); // Exception
Attachments
Issue Links
- Blocked
-
SPARK-45311 Encoder fails on many "NoSuchElementException: None.get" since 3.4.x, search for an encoder for a generic type, and since 3.5.x isn't "an expression encoder"
- Resolved
- links to