[Bluej-discuss] Problem with vararg parameters in Constructor
Michael Kölling
M.Kolling at kent.ac.uk
Fri May 25 09:23:37 BST 2007
That looks like a BlueJ error.
It's a fairly obscure thing, but we need to treat constructors as
slightly special, and it looks like we're getting something wrong there.
We'll put that on our bug list.
mik
On 24 May 2007, at 17:18, gumm at Mathematik.Uni-Marburg.de wrote:
> Consider the following class:
>
> public class Test{
> Test(int ... z){}
> static void test(int ... i){}
> }
>
> While it is legal, and possible from the BlueJ environment, to call
> test() with an empty parameter list,
> calling the constructor with empty parameter list, which is perfectly
> legal in Java, results in a BlueJ error:
>
> "An error occurred in a file for which the source cannot be found.
> class:source line number:
> java.lang.Class:2678
> NoSuchMethodException:Test.<init>()(in java.lang.Class)"
>
>
> Greetings,
>
> H.Peter Gumm
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
More information about the bluej-discuss
mailing list