This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |