-
Notifications
You must be signed in to change notification settings - Fork 92
deprecate XMLEventReader? #193
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
Comments
I made a label https://github.com/scala/scala-xml/labels/XMLEventReader and attached to relevant open issues |
(note that there are probably other XMLEventReader bugs for which tickets exist in JIRA but no one cared enough to recreate here) |
Sounds good for the reasons you mention. Despite all that, it is popular: https://github.com/search?l=Scala&q=XMLEventReader&type=Code |
Interestingly, there is an XMLEventReader that started shipping with Java in version 6: https://docs.oracle.com/javase/6/docs/api/javax/xml/stream/XMLEventReader.html |
I'm not sure those search results qualify for being described as "popular". There is some usage out there, clearly.
oh, interesting. well, all the more reason to deprecate ours, then. |
I can take this one. |
before actually doing anything, let's wait and see what the community response is to the Discourse post, if any |
resounding silence on Discourse, so I think the next step is to go ahead and deprecate. and also see if a volunteer wants to move it to a separate repo. @mghildiy you could take either or both tasks if you like though I wouldn't suggest you do the "move to separate repo" part unless you think it's actually worth your while, I wouldn't suggest you do it only because you're looking to help out |
As part of message, I should suggest a better alternative to XMLEventReader. Any good candidate for that? |
..and I guess I don't need to mention "since". |
this seems like a safe recommendation: I don't know of any Scala-based alternatives.
not sure what you mean? |
I asked on the Discourse thread, just in case. |
I meant I can skip Scala version from when this class would be deprecated. |
There are a few things to consider on Seth's proposal for deprecating it:
|
oh, it's not the Scala version unless you're in the scala/scala repo, it's the version of whatever codebase you're in. so in this case it would be "deprecated since 1.1.1", most likely |
Ok. |
@SethTisue You know anything about |
I would make change for deprecation, and commit it. |
I'd suggest removing |
not really, but see scala/util/Properties.scala in the scala/scala repo. it looks to me like @adriaanm just randomly picked some class and the choice doesn't matter? |
yuck. well we're not removing quite yet, just deprecating. the release that actually removes this stuff should be one where breaking bincompat is okay |
I removed XMLEventReader from my local repo, and was able to successfully compile and package the project. |
I tried ripping out XMLEventReader in #200. The tests pass, FWIW. Predictably, it also requires a list of MiMa excludes. |
yup :-) |
Fix for #193:deprecate XMLEventReader
someone want to PR the deprecation...? |
I think we can close this one on deprecating |
oh right, I forgot that got merged |
well I figure there's no big hurry to actually remove it, the important thing was to deprecate it. in the scala repo we just figure we'll do a repo-wide sweep for deprecated things at least once a release cycle, but opening a new ticket is also a sensible approach. |
here is a sample before-and-after for switching user code from scala.xml.pull to javax.xml.stream.events: |
it's
scala.*
namespace, which gives people understandably higher expectations of standard-ness and qualitymaybe we should deprecate it?
if someone were to get interested in it, they could always bring it back to life as a separate library (not under
scala.*
this time)The text was updated successfully, but these errors were encountered: