Issue852818

classification
Title: Wrong error message when the second+ parameter to Java wrong
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, trelony
Priority: low Keywords:

Created on 2003-12-02.19:39:09 by trelony, last changed 2009-03-03.16:28:14 by fwierzbicki.

Messages
msg878 (view) Author: Alexey N. Solofnenko (trelony) Date: 2003-12-02.19:39:09
java.awt.Toolkit.getDefaultToolkit().getImage(path) cannot be coerced to java.awt.Image
msg879 (view) Author: Alexey N. Solofnenko (trelony) Date: 2004-01-07.17:52:21
Logged In: YES 
user_id=236600

The problem was that in the next call Jython complained about the first parameter, but really the second parameter was wrong (file path instead of output stream).
msg4174 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-03-03.16:28:14
I *think* this is fixed -- I tried:

>>> java.awt.Toolkit.getDefaultToolkit().getImage(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: getImage(): 1st arg can't be coerced to java.net.URL, String
>>>

Which looks reasonable to me.
History
Date User Action Args
2009-03-03 16:28:14fwierzbickisetstatus: open -> closed
resolution: fixed
messages: + msg4174
nosy: + fwierzbicki
2003-12-02 19:39:09trelonycreate