-
Notifications
You must be signed in to change notification settings - Fork 82
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
Comments
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: