Change argument type for write/writeln/debug methods from Object to String

so that toString() is performed by the script runtime. (FESI wasn't able to do this,
but Rhino is.)
This commit is contained in:
hns 2003-06-17 12:23:48 +00:00
parent 5431daadcf
commit 2be8b10e8c

View file

@ -132,7 +132,7 @@ public class ResponseBean implements Serializable {
* *
* @param what ... * @param what ...
*/ */
public void write(Object what) { public void write(String what) {
res.write(what); res.write(what);
} }
@ -141,7 +141,7 @@ public class ResponseBean implements Serializable {
* *
* @param what ... * @param what ...
*/ */
public void writeln(Object what) { public void writeln(String what) {
res.writeln(what); res.writeln(what);
} }
@ -159,7 +159,7 @@ public class ResponseBean implements Serializable {
* *
* @param message ... * @param message ...
*/ */
public void debug(Object message) { public void debug(String message) {
res.debug(message); res.debug(message);
} }