Hi,

Thanks Dirk and Remy.

At 05:11 01/10/25, Dirk Verbeeck wrote:
>
>Hi
>
>The vector was introduced when I changed how the property names are
>stored. Not in a Enumeration that can only be used once but to use an
>array.
>
>I'll change that Vector.add to Vector.addElement
>that should work according to the spec of personal java 1.1.2

Vector.addElement worked.

>But can you first check if Vector.toArray is supported?
>It is also a "new" method and is used in many places.

Vector.toArray is not supported in Personal Java 1.2.
But there is an alternative method . Vector.copyInto(array[])

//        this.propertyNames = (PropertyName[])list.toArray(new 
PropertyName[list.size()]);

        PropertyName[] prp2 = new PropertyName[list.size()]; 
        list.copyInto( prp2 );
        this.propertyNames = prp2 ;


>Can you tell me a little about what you are doing ?
>Until now I never thought about supporting personal java but a
>"personal" webdav client could be very usefull.

I am working with some company to develop WebDAV client application.
I don't know yet the target machine which will be WinCE or PDA or KEITAI.  

>I would look at your website but my japanese is not that good ;-)

I am sorry for my local website.

--
Yoshiyuki Kumadaki

>
>Yoshiyuki Kumadaki wrote:
>> 
>> Hi,
>> 
>> I am testing Slide client with Personal Java3.1.
>> Slide client 1.0.11 was compatible with Personal Java.
>> 
>> Slide client 1.0.15 is using un compatible method for Personal Java
>> in Line318 of org.apache.webdav.lib.methods.PropFindMethod.setPropertyNames()
>> .
>> Personal Java3.1 is not supporting
>> java.util.Vector add(object) method
>> 
>> Would you change this method?
>> 
>> org.apache.webdav.lib.methods.PropFindMethod.setPropertyNames()
>> Line 318:     list.add(item);
>> 
>>             Object item = propertyNames.nextElement();
>> 
>>             if (item instanceof PropertyName)
>>             {
>>                 list.add(item); //<----------This line
>>             }
>> 
>> java.lang.NoSuchMethodError: java.util.Vector: method
>> add(Ljava/lang/Object;)Z not found
>>         at org.apache.webdav.lib.methods.PropFindMethod.setPropertyNames()
>>         at org.apache.webdav.lib.methods.PropFindMethod.<init>()
>> 
>> --
>> Yoshiyuki Kumadaki / 熊懐 善之
>>  Web Japan Co.,Ltd / (株)ウエブジャパン
>> <http://www.webjp.co.jp/>

--
Yoshiyuki Kumadaki/熊懐 善之
 Web Japan Co.,Ltd /(株)ウエブジャパン
<http://www.webjp.co.jp/>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to