I'm running in jdk1.3. I get a ClassCastException in
DAVFile.getLinks() when attempting to view the
The line of code is:
return (Link) links.toArray();
I believe that that this is a problem because the
ArrayList.toArray() method always returns an Object,
which doesn't successfully cast to Link.
On my own machine, I've gotten around it by creating a
new Link and using the ArrayList.toArray(Object)
method instead. This method uses the parameter to
determine the variable type that it's creating.
Link returnLinks = new Link[links.size()];