|
From: <php...@li...> - 2007-09-25 11:50:46
|
Hi,
> [o(DepMnt0302AcctDispDelSrvImport$InBankParameters)]->setCurrTrxDate((Date)c(Date)).
AFAIK you need to pass a date object. Not a class. Note the "c" above.
> $java_date = new Java("java.sql.Date");
You cannot instanciate java.sql.Date() because no such constructor exists. You probably want
java("java.sql.Date")->valueOf(...);
For backward compatibility the JavaBridge allows the above construct, but it issues a warning on
log level 3 and above that you should correct the above code or use new JavaClass("java.sql.Date")
instead, if that's what you want.
> $java_date->valueOf("2007-12-07");
Why do you ask the date class "$java_date" to return an instance "2007-12-07" and then throw it
away?
Regards,
Jost Boekemeier
__________________________________
Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever
|