This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [gui] Boolean and formatting fix
Am Donnerstag, 28. Oktober 2004 16:58 schrieb Tom Tromey:
> >>>>> "Michael" == Michael Koch <konqueror@gmx.de> writes:
>
> Michael> Are you sure this is correct ? boolean.class is not the
> same as Michael> Boolean.class.
>
> He's still passing boolean.class to getConstructor. For the actual
> newInstance call, boolean values must be wrapped in Boolean, he
> just changed the code from `new Boolean' to `Boolean.valueOf'.
I saw this. I just wondered if the code is correct at all. I don't
knew that reflection transforms java.lang.Boolean arguments
automatically to boolean.
Michael
--
Homepage: http://www.worldforge.org/