JDK-4652928 : LTP: Collection (or classes that implement Collection) is not supported
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.beans
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt,windows_2000
  • CPU: x86
  • Submitted: 2002-03-14
  • Updated: 2002-04-27
  • Resolved: 2002-04-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.1 hopperFixed
Related Reports
Duplicate :  
Relates :  
Description
Classes which implement the java.util.Collection interface are not properly XML encoded.
An example of this is BeanContextSupport (which implements BeanContent which is a sub-interface
of Collection).

It's important to support the XML encoding/decoding of BeanContext classes since they are part
of the Java API.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: hopper FIXED IN: hopper INTEGRATED IN: hopper
14-06-2004

WORK AROUND Should write a user settable persistence delegate.
11-06-2004

EVALUATION Part of the problem is that there is no clear method to get/set the group of objects managed by the Collection. The add/addAll/clear/remove/removeAll are optional operations. Which mean that it's not required. In fact, for BeanContextSupport, the addAll, removeAll and clear methods throws an UnsupportedOperationException. Perhaps a persistence delegate to support generic Collections is not feasable. The solution for this could be to write a PersistenceDelegate for BeanContextSupport that uses the methods: Object[] toArray() for retrieval and void add(Object) to set. ###@###.### 2002-03-14 A persistence delegate for java.util.Collection was created and put into MetaData. There is also a BeanContextSupport persitence delegate which will also support the persistence of BeanContextServicesSupport as well. ###@###.### 2002-04-22
22-04-2002