Bugs item #1151966, was opened at 2005-02-25 18:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1151966&group_id=44253
Category: DynamicJava
Group: Serious
Status: Open
Resolution: None
Priority: 5
Submitted By: Stephen Wong (sbwong)
Assigned to: Sid Byrd (sidb)
Summary: Interactions pane doesn't process nulls in varargs correctly
Initial Comment:
When a method takes a vararg and is called with a null
as the *first* parameter, the code will compile correctly
and run correctly when called from within a program but
when tested from the Interactions Pane it will fail with
a "NullPointerException: " with no additional info
returned.
That is, suppose we have
void test(Object...x) {...}
Calling test.(null, yadda, yadda) will work fine from
inside a program, but this line will fail from the
Interactions Pane.
On the other hand,
test(yadda, null, yadda) works fine always.
Perhaps relatedly, test(null) runs fine from the
Interactions pane but won't compile. I'm not sure it is
supposed to compile and thus should not run in the
Interactions Pane.
I have attached a test file that demonstrates all of this.
I have labelled the problem "serious" because it creates
inconsistent output for a reasonable input that someone
might try (as in that what happened in class today) plus
the fact that the error message is singularly unhelpful.
-- Stephen Wong
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1151966&group_id=44253
|