Issue Details (XML | Word | Printable)

Key: BEEHIVE-829
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Kenneth Tam
Reporter: Kenneth Tam
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Beehive

Controls deserialization broken because it's looking for the wrong delimiter

Created: 22/Jun/05 07:23 AM   Updated: 12/Sep/05 05:18 AM
Return to search
Component/s: Controls
Affects Version/s: v1m1
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 12/Sep/05 05:18 AM


 Description  « Hide
Controls deserialization has a rather nasty bug where we're looking for the wrong delimiter. To wit, in AnnotatedElementMap.readObject():
---
            int argsIndex = _elemDesc.indexOf('/');
            if (argsIndex < 0) // element is a Field
---
should actually be:
---
            int argsIndex = _elemDesc.indexOf('(');
            if (argsIndex < 0) // element is a Field
---

This basically means that controls serialization is broken in a fair number of cases (mostly extensible controls).



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #191739 Tue Jun 21 22:54:50 UTC 2005 kentam BEEHIVE-829: Controls deserialization broken because it's looking for the wrong delimiter

One character fix <sigh>.
Files Changed
MODIFY /incubator/beehive/trunk/controls/src/api/org/apache/beehive/controls/api/properties/AnnotatedElementMap.java