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

PailStructure passed to Pail.create is not used in the output stream #38

Open
kul opened this issue Sep 12, 2013 · 2 comments
Open

PailStructure passed to Pail.create is not used in the output stream #38

kul opened this issue Sep 12, 2013 · 2 comments

Comments

@kul
Copy link

kul commented Sep 12, 2013

I have a slightly modified implementation of PailStructure where i store some state (say myvar) in the Implemented Object which is used for Ser/De.

So my code looks something like
pail = Pail.create(path,new MyPailStructure(myvar))
os = pail.openWrite
os.writeObject(o)

But the problem is that this throws exception because myvar is null. I would like to ask what is the use of passing a MyPailStructure instance here if the internal api create its own instance?

Can i workaround this?

Thanks

@kul
Copy link
Author

kul commented Sep 13, 2013

Looking at this #17 it seems like parameters should ideally be serialized into pail.meta. But opening pail.meta shows just classname. "myvar" in above code is a String and should be serializable. What am i doing wrong here?

Edit: seems like the pull request is pending.

@kul
Copy link
Author

kul commented Sep 13, 2013

Seems like out of 5, 3 pull requests are to work around this, #17 #33 #36. I will close this as duplicate but would be nice to hear what repo owners plan to do.

Thanks

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

No branches or pull requests

1 participant