Hi,
got some problem:
My applications data model throws an ClassCastException:
---FoobarContainer.java---
public Foobar[] getFoobar() {
..
Foobar[] mArray = new Foobar[size];
mArray[index] = (Foobar) _foobarList.get(index); // ClassCastExc
..
}
---FoobarContainer.java---
I have no idea why, but there seems to be HashMaps in the _foobarList
collection, although there should be Foobar objects.
In the FoobarContainer class, the _foobarList is private, and all public
methods to change this list have correct parameters types:
---FoobarContainer.java---
public void addFoobar(Foobar vFoobar)
throws java.lang.IndexOutOfBoundsException
{
_foobarList.add(vFoobar);
} //-- void addFoobard(Foobar)
---FoobarContainer.java---
I have NO idea, how it is possible that someone/something can add a
HashMap object into this _foobarList ArrayList.
Perhaps someone knows what's going on and can kick me in the right
direction :)
regards
Mike
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------