Re: [Delicious-java-discuss] active?
Brought to you by:
czarneckid
From: <del...@li...> - 2006-05-18 20:38:03
|
The signature for the addPost method is: public boolean addPost(String url, String description, String extended, String tags, Date date, boolean replace, boolean shared) The 5th parameter needs to be a Date object, not a String. Try p.getTimeAsDate(): boolean sent =3D delicious.addPost(p.getHref(), p.getDescription (), p.getExtended(), p.getTag(), p.getTimeAsDate(),replace,true); That should work. Don=B9t know why I didn=B9t spot this before. Maybe it sneake= d past if you weren=B9t using an IDE that could do type checking since that should=B9ve caught it. On 5/18/06 3:40 PM, "del...@li..." <del...@li...> wrote: > Hi David, > I've downloaded 1.12 and put in sketch's code folder (im using Processing= 115) > My new addPost() looks like this: >=20 > boolean replace =3D true; > boolean sent =3D delicious.addPost(p.getHref(), p.getDescription (), > p.getExtended(), p.getTag(), p.getTime(),replace,true); >=20 >=20 > I'm getting a similar error: > /tmp/build49099.tmp/Temporary_6850_6591.java:102:16:102:120: Semantic Err= or: > No applicable overload for a method with signature "addPost(java.lang.Str= ing, > java.lang.String , java.lang.String, java.lang.String, java.lang.String, > boolean, boolean)" was found in type "del.icio.us.Delicious". Perhaps you > wanted the overloaded version "boolean addPost(java.lang.String $1, > java.lang.String $2, java.lang.String $3, java.lang.String $4, java.util= .Date > $5, boolean $6, boolean $7);" instead? >=20 > btw: I'm using OS X, 10.4.5, java ver 1.4.2_09 >=20 > Are there restrictions on how the strings are formatted? >=20 > thanks, > steve >=20 >=20 > On 17/05/06, Stephen Boyd <ss...@gm... <mailto:ss...@gm...> = > > wrote: >> Ok. thanks. I'll give it a shot. >>=20 >> On 17/05/06, del...@li... >> <mailto:del...@li...> >> < del...@li... >> <mailto:del...@li...> > wrote: >>> > The addPost method in the latest release (1.12 - just released about = 20 >>> min >>> > ago) has the following signature: >>> > >>> > public boolean addPost(String url, String description, String extende= d, >>> > String tags, Date date, boolean replace, >>> boolean >>> > shared) >>> > >>> > So, you'd need to make a call like: >>> > >>> > boolean replace =3D true; >>> > boolean sent =3D delicious.addPost (p.getHref(), p.getDescription(), >>> > p.getExtended(), p.getTag(), p.getTime(), replace, true); >>> > >>> > >>> > On 5/17/06 11:04 AM, " del...@li...urceforge= .net >>> <mailto:del...@li...> " >>> > <del...@li...> wrote: >>> > >>>> > > Semantic Error: No applicable overload for a method with signature >=20 --=20 David Czarnecki http://www.blojsom.com/blog/ | http://blojsom.sf.net |