"adrian@jboss.org" wrote:
"alesj" wrote:
Ok, for MetaData there is no problem.
What do we do with JavaBeans (which now fail - since with wildcard test's we use plain java.lang.Object)?
Just change the test to use something like the following class:
package org.jboss.test.....;
import java.io.Serializable;
public class SerializableObject implements Serializable
{
private static final long serialVersionUID = -1L;
}
We do have the ability to serialize non-Serializable objects, and this notion should be coming in as an annotation/external metadata passed to the serialization layer rather than a tagging interface that has to be seen in the type system in my view. Exposing Serializable in the mc apis is too onerous a contract.