<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=347052216-01052007><FONT face=Verdana 
color=#000080 size=2>Bart,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=347052216-01052007><FONT face=Verdana 
color=#000080 size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=347052216-01052007><FONT face=Verdana 
color=#000080 size=2>You are correct. Feel free to change that 
assert.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=347052216-01052007><FONT face=Verdana 
color=#000080 size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=347052216-01052007><FONT face=Verdana 
color=#000080 size=2>Julian</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> mondrian-bounces@pentaho.org 
  [mailto:mondrian-bounces@pentaho.org] <B>On Behalf Of </B>Pappyn 
  Bart<BR><B>Sent:</B> Thursday, April 26, 2007 3:07 AM<BR><B>To:</B> Mondrian 
  developer mailing list<BR><B>Subject:</B> [Mondrian] Assert not conforming 
  documentation<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=453430310-26042007>I would like to 
  return SetType(null) in a user defined function.&nbsp; The documentation says 
  it is ok to pass null in case the type is not known.</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=453430310-26042007></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=453430310-26042007>But the following 
  code :</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>public class SetType implements Type 
  {</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; private final Type 
  elementType;</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
  /**<BR>&nbsp;&nbsp;&nbsp;&nbsp; * Creates a type representing a set of 
  elements of a given type.<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
  *<BR>&nbsp;&nbsp;&nbsp;&nbsp; * @param elementType The type of the elements in 
  the set, or null if not<BR>&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp; 
  known<BR>&nbsp;&nbsp;&nbsp;&nbsp; */<BR>&nbsp;&nbsp;&nbsp; public SetType(Type 
  elementType) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; assert 
  elementType instanceof MemberType 
  ||<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  elementType instanceof 
  TupleType;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.elementType = 
  elementType;<BR>&nbsp;&nbsp;&nbsp; }</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><SPAN class=453430310-26042007><FONT face=Arial size=2>-&gt; In case null 
  is passed, then this will raise an assertion failure.</FONT></SPAN></DIV>
  <DIV><SPAN class=453430310-26042007><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=453430310-26042007><FONT face=Arial size=2>Kind 
  regards,</FONT></SPAN></DIV>
  <DIV><SPAN class=453430310-26042007><FONT face=Arial 
  size=2>Bart</FONT></SPAN></DIV>
  <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>