When trying to pass a “case class” from Scala to Flex, the results on the Flex side are a regular object instead of UINamespace. Changing the case class to a regular Java class, and it does the right thing.
The case class is as follows:
package com.scala.vo
case class UINamespace (@BeanProperty var name : String,
@BeanProperty var version : String,
@BeanProperty var parameters : java.util.List[String]) {
def this() = this("", "", null)
}
Flex Side:
[RemoteClass(alias="com.scala.vo.UINamespace")]
public class UINamespace
{
public var name : String;
public var version : String;
public var parameters : ArrayCollection;
}
Has anyone been able to solve this?
[Edited] Changed the null value for the result of a regular object.
source
share