-
Notifications
You must be signed in to change notification settings - Fork 237
Xstream keeps path references to unreferenceable objects #3
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
Conversation
|
I didn't do anything clever regarding branching to make this pull request, I just bought up my version of the code-base on one screen, this branch on another, and the diffs on a third, and then started working through the diffs one by one. If I can put together the time, I'd like to figure out how to set my fork's upstream to the work I did on the other repo, and then try a If nothing else it would make for one hell of an interesting merge in my fancy new 'Semantic Merge' merge tool! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what to do about this, do you guys enforce @since tags, and whats the correct value?
664d485 to
b486d53
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here also, this is presumably 1.5.something
|
Hi Geoff, well, actually you have to bear with me too, I did not really use GitHub myself until two weeks ago. Concerning the changes - it looks a lot better now! I was really irritated by the original diff containing this mix of Java 5 features and code that did not support it. Minor stuff (incl. some unnecessary changes):
Thanks for your time! |
|
|
also, |
|
What type can't be referenced? - Wiktionary defines referenceable (see link above) as: Capable of being referenced. That's exactly what happens. Setting referenceable to false for a type ha sthe effect that you cannot have references in the XML to an object of such a type. I see no tautology here, but I am no native speaker. Change of visibility: I did not say that it breaks binary compatibility, I said it changes the API. While package-private is not that different, we don't ajdust visibility for the sake of tests. If someone accesses the field using relfection, he knows (well, he should) that he cannot rely on binary compatibility anymore. Thanks for your patience. |
|
hey @joehni I have not forgotten about this issue nor have I run out of patience, work has just gotten really dense lately and I've had little time to spare. At the very latest I should be able to get back to this stuff by Sunday. Sorry for the delay, and thanks for your time! -Geoff |
|
Hi Goeff, no hurry. We're still busy saving bits and pieces from Codehaus. Officially it shuts down on the weekend. |
|
So, have you considered that the algorithm you're suggesting:
The problem with this is the requirement that I'm not sure why null values types aren't found. looking at the failing tests, the types alias is the name of the element, its just not beling looked up properly. Any idea why? For my codebase at least, a JUL log at level |
|
also @joehni, before merging I'll squash all this work into one commit, so I wont clutter your history with But I think the ball is back in your court regarding how we want to treat these failing tests. Let me know |
|
The build is failing, because of Java 7 syntax. See details of the Travis build above. |
|
yeah removed that. Now its failing for the above mentioned reasons. Any ideas? |
|
The unit tests of XStream often give interesting surprises ;-) |
- currently has problem in the event that the type cannot be deteremined but null values can be referenced -> an immutable type with a null value can be referenced. Doesnt work -> breaks tests.
|
ok @joehni:
let me know when this makes it in! Im anxious to get my project off my home-built XStream fork. |
|
@joehni are you still there? |
|
Am Montag, 29. Juni 2015, 14:50:18 schrieb Geoff:
Yes, but I am struggling with offline stuff. Since I am not very familiar |
|
fair enough! I've spent my entire (read: 4 year) career on git and I'm still consistently surprised by its behaviour. Give me a shout (by typing @Groostav) if you need me to do anything else. In the meantime I consider the ball to be in your court. |
closes #3. Add compatibility support for already persisted streams.
|
Thanks for this @joehni, sorry for pestering you so much! |
|
Hey, thanks for your contribution and patience! Keeping a low memory footprint is quite important. |
continuation of The PR over at gg-xstream
@joehni My apologies for all the trouble! This is my first contribution to a significant open source project, and my first attempt at cross-project github use.