Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handling of getPropertyCount get's wrong on classes for send AND receive #195

Open
GoogleCodeExporter opened this issue Jul 9, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. make a simple String Vector class for KvmSerializable
2. use this.size() for getPropertyCount as it indicates the size of the Vector
3. call the service, the Vector is fully send
4. parsing fails with "Unknown Property" when receiving the String Vector

5. switch getPropertyCount to return a static 1
6. call the service, only the first entry of the Vector is send
7. parsing successful when receiving the String Vector

What is the expected output? What do you see instead?
Sending of all members from the Vector.
Successful parsing on receiving the Vector.

What version of the product are you using? On what operating system?
3.3.0
linux arch
android api 19

Please provide any additional information below.
workaround:
    public int getPropertyCount() {
        return this.size() > 0 ? this.size() : 1;
    }

Original issue reported on code.google.com by [email protected] on 14 Aug 2014 at 5:19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant