Lots of caveats in this (I don't think this is a random sample of central artifacts + it doesn't cover the testing use-cases mentioned elsewhere in the thread + libraries tend to be different than apps), but
On the other hand, your data does make a strong case for removal?
sqlitejdbc is just a JDBC driver, which has a CachedRowSetTest. Apparently rowset is a maintenance burden for them as well.
xyz.cofe.sql.stream is apparently a project that was deleted by its author.
ao-lang is a project that depends on literally everything: it has a Throwables class that registers ALL Java exceptions, even those from the rowset module, and that's its rowset dependency.
I wouldn't say that. Very few artifacts have module infos, and you can make a reasonable argument that the kind of projects that would make use of the row set module would be older and thus less likely to be currently maintained and have module infos, but you can also make the argument that libraries aren't built on top of it doesn't mean that applications aren't built on top of it. And I don't have data about those. Also people generally don't publish their tests.
It makes a case to look deeper.
Also I share the skepticism about maintenance costs. As far as I'm aware there is nothing special about it as a library. It's just code built on top of jdbc. This means that it can't really have that much of a maintenance cost outside of itself (it's not like the security manager and it's widespread and it's not like unsafe or finalizers where it affects the VM - you could reasonably just distribute it separately). Other things that are deprecated for removal get to argue that they impose a tax on every future feature or at least a lot of them.
I don't see that here.
Also a query I should run is how many depend on java.se. for any of those you would need deeper analysis to know if they make use of row set since it comes in transitively
I don't get people annoyed here. It's a proposal (the p in jep). Make your voice heard, tell them of your use cases on the mailing list, it's literally why the jep exists. So that decisions can be challenged and arguments can be shared
Though I love how the Oracle employee here defends the proposals by making arguments he would usually lecture other people on ("this is not how Java works, we are enterprisey professionals, we don't break things willy-nilly"). :-)
Because we shouldn't have to plead for maintaining backwards compatibility on a platform that was sold as taking backwards compatibility extremely seriously.
Taking backwards compatibility extremely seriously doesn't mean nothing gets removed, that is how you end with C++, and even they have removed a few things.
Maybe a clear roadmap for the future would be more helpful for everyone than "oh look, another deprecation for removal" every few months. With an honest statement as to what the commitment to backwards compatibility actually is (as it sure isn't what a Sun salesperson told me it was a quarter of a century ago).
Because it seems to me like the libraries included with the JDK are eventually going to be trimmed down to little more than what's in java.base. Which would be fine (the standard library doesn't need to be everything and the kitchen sink), as long as people know that it's coming and can plan accordingly.
For example, I have a use case on a project where JNDI would be a perfect fit, but I can't escape the feeling that, at best, within the next 10 years it's going to require a migration to jakarta.naming and at worst it's going to go the way of CORBA support and just quietly disappear.
If you don't mind, can you talk about your use case for JNDI? I share your feeling that the java.naming module might be a future candidate for removal, but I also think it's not pulling its weight so I wouldn't be opposed. Not saying this applies to your use case, but in my experience: When requirements are vague, one reflex is to compensate by reaching for overly general third party frameworks (or worse, building one yourself) so that when the actual requirements arrive, you can save 10 lines of code by plugging into the framework (in exchange for multiple megabytes of dependencies and massive increase in complexity). JNDI feels exactly like such a framework (e.g. when the actual requirement is that you have multiple implementations of an interface that you need to switch via a configuration file, just have an if statement somewhere. if the requirement is to call over the network to get the thing, call the underlying library directly).
It's been about 15 years but I have used the rowset API a fair bit in the past. I thought it was fine. So gives a rather strange feeling to see it being removed.
Is there any maintenance burden if the alternative is to just leave the module as-is? There has only been around 60 commits since 2017 touching this module. If some people use it, even if few, then why remove it if there were no issues for years? Doesn't this only break backwards compatibility for people who use this module? The "maintenance burden" framing is doing a lot of heavy lifting here.
Given how seriously we take compatibility 1, if the JDBC maintainers say this imposes a maintenance burden, I see no reason to doubt them. They have no motive for doing something that's a net negative. At worst they might be misjudging the popularity of the API, which is precisely why we have a deprecation process. Everyone who's affected will see the deprecation warning and will be able to inform the maintainers of their use case.
JDBC, like some other areas of the JDK, requires specialists, and there aren't many JDBC specialists on the JDK team. Comparing the number of commits to that in other areas of the JDK that are possibly better resourced is not a good way to judge the maintenance burden.
There are a ton of JDBC drivers, including new ones for new DBMS, and every one of them has to take into account what RowSet means for them, and/or if they can ignore those parts. Those commits don't show up in the JDK, of course.
Don't do that! This module was really useful for some apps. It's described nicely in "Pattern of Enterprise Application Architecture" by Martin Fowler. Not every app needs layers of abstractions!
Actually, no reflection needed, as for java.sql.ResultSet, we have getMetaData() that result a ResultSetMetaData object, that can be used to discover the structure of the result set for binding.
Not sure what you would "modernize". The api is basically just a basis upon which a ton of other frameworks, from "simple" query mappers to complex ORMs are built. Either you keep it basic (then it would be less of a modernization, just a cleanup, which might not be worth the breaking changes) or you move it into the direction of any of those other libraries, then you lose the advantage of is being basic and neutral.
No, it's not. You probably think about the ResultSet-API, not the RowSet. And the ResultSet is going nowhere. (Although I wish it would, because it's a horribly API, but it's what we got at the low level.)
I read the posting I responded to as him wanting to modernise the whole api, not just the RowSet part, which is what my answer is referring to. Is it horrible? Sure. I mean, enough of of us remember the time when we had SqlExceptions everywhere. But nowadays, not many people are still using raw java.sql anymore (some base classes, sure, but a lot of that stuff typically gets wrapped nowadays anyway).
Well, I do agree with him, the API would benefit from modernisation. And yes, a cleanup would probably be enough. Remove the old date types, add an async mode, allow query-batching... There's a lot that could be done while still being low level.
The problem is the gazillion implementations that would need to be updated. I'm sure postgres would be quick to adopt it, but looking at the oracle jdbc driver, it would take them approximately 20 years...
And yes, it wouldn't concern too many people, but those of us who do the wrapper stuff would greatly appreciate it.
That an API is used by some is not necessarily a deal breaker to removing it. When resources are shared among highly-used APIs and rarely-used APIs, some people will be harmed no matter what. If you remove the API, those who use it are harmed; if you don't, those who don't use it are, because that means there's fewer resources to devote to the better used parts. There is no decision that harms no one. The question then becomes is keeping the API causing more harm than removing it or the other way around?
We had to make a similar decision about SecurityManager. That some would be harmed by the removal was obvious. But we concluded that many more would be harmed by not removing it, which is why we decided to remove it.
The JEP mentions JooQ together with three of its (probably bigger) competitors. It mentions both Coke and Pepsi, and you're complaining that it's Pepsi marketing.
Say something about enterprise software still using it.
Reading the jep and then reading your comments gives the impression that you specifically really hate jooq, and then secondarily also hate some of the most popular frameworks used by java developers, and thirdly are reading far too much into the jep's listing of these alternatives.
Like you seem far more biased than the jep analysis, and I'd literally bet that a random person reading this comment chain would come to the same conclusion.
The funny thing is you've said nothing useful about rowsets for any of your posts, which kinda just points even more to the fact that nobody actually cares its being deprecated.
Did you read the JEP? It's not about the JDBC-API, it's about the RowSet module.
I develop low level JDBC-Stuff, and I haven't heard from that API. I'm pretty sure it's ok to remove. May somebody still use it? Probably, but I'll promise you they're still using Java 1.6.
Mocking out a result set is complex and assumes that your query is the correct one to return you those results. How do you test the query itself? I much prefer to use test containers to use a "real" implementation of a database.
3
u/bowbahdoe May 03 '26 edited May 03 '26
Lots of caveats in this (I don't think this is a random sample of central artifacts + it doesn't cover the testing use-cases mentioned elsewhere in the thread + libraries tend to be different than apps), but
I do agree that the JEP as written does not make a strong case for removal. The word "modern" is doing a lot of legwork here.
42
u/Typen May 02 '26
I didn't even know this API existed.
19
u/bendem May 02 '26
I don't get people annoyed here. It's a proposal (the p in jep). Make your voice heard, tell them of your use cases on the mailing list, it's literally why the jep exists. So that decisions can be challenged and arguments can be shared
28
u/ZimmiDeluxe May 02 '26
I remember wasting a bit bit of time trying to understand if these were useful, good to have them removed eventually
16
u/__Raptor__ May 02 '26
The only thing I know about this module is that its types kept appearing as suggestions when I was doing something else, much to my annoyance
7
u/kari-no-sugata May 02 '26
It's been about 15 years but I have used the rowset API a fair bit in the past. I thought it was fine. So gives a rather strange feeling to see it being removed.
8
u/lpt_7 May 02 '26
Is there any maintenance burden if the alternative is to just leave the module as-is? There has only been around 60 commits since 2017 touching this module. If some people use it, even if few, then why remove it if there were no issues for years? Doesn't this only break backwards compatibility for people who use this module?
The "maintenance burden" framing is doing a lot of heavy lifting here.
4
u/EmmetDangervest May 02 '26
Don't do that! This module was really useful for some apps. It's described nicely in "Pattern of Enterprise Application Architecture" by Martin Fowler. Not every app needs layers of abstractions!
2
u/Cloud5550 May 02 '26
Is this related to Spring Data RowMapper?
-2
u/revilo-1988 May 02 '26
Ja kann weg ewig nicht mehr in Verwendung gesehen. Allgemein wäre ne Modernisierung der API Intressant
0
u/maethor May 05 '26
So, how long until everything outside of java.base is deprecated for removal? Because that's where things seem to be heading.
0
u/[deleted] May 02 '26
[deleted] — view deleted comment
9
u/[deleted] May 02 '26
[removed] — view removed comment