https://bz.apache.org/bugzilla/show_bug.cgi?id=57855

--- Comment #6 from Konstantin Kolinko <knst.koli...@gmail.com> ---
(In reply to Mark Thomas from comment #4)
> (In reply to Konstantin Kolinko from comment #3)
> > Reviewing r1676234
> > 
> > 2) It looks that the message in AstValue.java prints "The method [{0}] was
> > called with [null] parameters" when null is passed as src. Wouldn't it
> > better to print "0" instead of "null" ?
> 
> I'll like to be able to differentiate between a zero length array and null.
> 

E.g. end user may call the method without any arguments,  but some higher API
that translates that into a call to MethodExpression is allowed to optimize
that to pass "null" instead of allocating a zero-length array of arguments.

Printing a message that says "null" may be confusing for the end user.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to