[Mondrian] Assert not conforming documentation

Julian Hyde julianhyde at speakeasy.net
Tue May 1 13:01:52 EDT 2007

You are correct. Feel free to change that assert.


From: mondrian-bounces at pentaho.org [mailto:mondrian-bounces at pentaho.org]
On Behalf Of Pappyn Bart
Sent: Thursday, April 26, 2007 3:07 AM
To: Mondrian developer mailing list
Subject: [Mondrian] Assert not conforming documentation

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,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20070501/06ba6fa7/attachment.html 

More information about the Mondrian mailing list