[Mondrian] Assert not conforming documentation
Pappyn Bart
Bart.Pappyn at vandewiele.com
Thu Apr 26 06:07:07 EDT 2007
I would like to return SetType(null) in a user defined function. The
documentation says it is ok to pass null in case the type is not known.
But the following code :
public class SetType implements Type {
private final Type elementType;
/**
* Creates a type representing a set of elements of a given type.
*
* @param elementType The type of the elements in the set, or null
if not
* known
*/
public SetType(Type elementType) {
assert elementType instanceof MemberType ||
elementType instanceof TupleType;
this.elementType = elementType;
}
-> In case null is passed, then this will raise an assertion failure.
Kind regards,
Bart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20070426/218e695d/attachment.html
More information about the Mondrian
mailing list