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:
parent
5431daadcf
commit
2be8b10e8c
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue