[gui] Boolean and formatting fix

Michael Koch konqueror@gmx.de
Thu Oct 28 15:06:00 GMT 2004


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/



More information about the Java-patches mailing list