[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: branches/KDE/3.5/kdelibs/khtml/java
From:       "koos vriezen" <koos.vriezen () gmail ! com>
Date:       2007-12-03 20:15:51
Message-ID: d4e708d60712031215x46324297n9ec11a80137fdfc () mail ! gmail ! com
[Download RAW message or body]

2007/12/3, Maksim Orlovich <mo85@cornell.edu>:
> > SVN commit 744487 by vriezen:
> >
> > KJASProtocolHandler.getArg can't handle empty strings, so for calling a
> > member function from js we must add the number of arguments as extra
> > param.
> > There's no way to see difference between NULL and "" though.
>
> This scenario is why I wanted the put and call methods to include the type
> tags with the argument list/value..

We already do that,  the KPart::LiveConnectExtension::ArgList is a
list of Type/QString pairs. For java this is lost again when sending
it to the vm. But since java has this nice reflection API, more or
less smart lookup is done whether "0" is a string or number.

> > Note this needs regenerating the kjava.jar
>
> Might be best for you to do it... (Or I could do it..)

For the record, I've locally created it with
PATH=/usr/lib/jvm/java-6-sun/bin:$PATH ./make-jar
in the khtml/java dir.

I'll create another one, should be build with jdk1.4, and update it.

Br
Koos
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic