Menu

#20 assert with two parameters does not parse

open
nobody
None
5
2004-06-25
2004-06-25
Anonymous
No

assert statements like the following

assert (out != null) : "null input: out";

cannot be parsed. assert with a single parameter does
work, though.

Discussion

  • Jeff Pace

    Jeff Pace - 2004-06-28

    Logged In: YES
    user_id=316860

    Was this running with the "--source 1.4" option? If not, it is being parsed as
    1.3 code, in which case "assert (out != null)" simply looks like a method.

    However, I'll try to add more meaningful output in the case of parse errors
    for this type of case.

     
  • Jesse Glick

    Jesse Glick - 2004-07-08

    Logged In: YES
    user_id=257383

    Aha, --source 1.4! It does seem to work, but it is not
    documented in the doctorj man page! Please add an entry to
    the man page explaining that this option exists and what
    values are currently permitted.

     

Log in to post a comment.

MongoDB Logo MongoDB