7 ms·
This release cycle makes no sense to me. We haven’t even finished migrating all our components to compile with JDK8 yet, though they’ve all been running agains
by BonesJustice 9y ago
This release cycle makes no sense to me. We haven’t even finished migrating all our components to compile with JDK8 yet, though they’ve all been running against it for a while now. We’re barely even discussing moving to JDK9 at this point. What company with a reasonably large software base is going to keep up with a six-month release schedule? Java isn’t a web browser or some other user application. Who would even _want_ to spend the kind of resources required to constantly be testing new JDK releases?
- naibafo 9y agoThat's why they have LTS releases I think?
- akerro 9y ago>This release cycle makes no sense to me. We haven’t even finished migrating all our components to compile with JDK8 yet Why is it Oracles fault that you keep your components on Java version that has been deprecated and support dropped 4 years ago? >What company with a reasonably large software base is going to keep up with a six-month release schedule? What? No. That's now how it works. Every 3rd release is LTS and it support time is between 6 and 11 years as so far discussed. Java8 won't be supported after January 2019, Java11 (LTS) will be release in September this year. > Java isn’t a web browser or some other user application. Who would even _want_ to spend the kind of resources required to constantly be testing new JDK releases? You're not supposed to be testing it. You're supposed to write code to a contract, contract won't or shouldn't change. If you write code that follows implementation instead a contract (let's say you relay on HashSet order - I've seen it), it's your fault. We always make sure we write code that follows the contract. We're migrating our code base to Jigsaw now, after Spring 5 and SpringBoot1.5 were release with updated dependencies. If Spring and Tomcat teams made it available earlier, we would be on Java9 months ago.
- piokoch 9y agoIf that were so simple. What if your software gets deployed on an application server? If you upgrade, you need new support contract, this costs money plus leads to possible deployment/config changes, for instance going from JBoss 5 EAP to JBoss 6 EAP is not a pleasant experience as almost all configuration was radically changed. What if part of your application is audited and certified by some regulatory body, when you upgrade, you need to go through the process again. Java value is stability, you can assume your software will run for 20 years without touching it.
- dragandj 9y agoNo one is forcing anyone to upgrade. What worked on Java 8 3 years ago, will work on Java 8 in 17 years. If your team have extra requirements (audit, certification etc.), it seems it sells enterprise software. All those things cost money, but I assume you also charge money. So, what's exactly the problem? It is a bit naive to expect to get ultra stability for free from your suppliers, but charge top dollar from your customers...
- coldtea 9y ago>No one is forcing anyone to upgrade. No, but they are restricting them from updating as easily as before -- unless they cough up dough.
- oblio 9y agoHow are they restricting the updates? I'm not sure I understand.
- coldtea 9y agoBy only providing fixes and security patches for a few months -- after that you need to move to the next version (with all that entails testing and adapting wise for large codebases), or you pay for enterprise support and get support for years. Before you could go to any version and expect it to be supported for years. Now, if you dare go to some version above 8, you're supposed to either pay (for long term support), jump directly to the next version after a few months, or stay without security fixes. (Or go OpenJDK and screw them).
- badpun 9y agoEnterprise Java is mostly about writing glue code that combines dozens of libraries and frameworks. How can you tell (without testing) if tens of millions of lines of code in those libraries are not doing anything stupid, like depending on implementation instead of contract?
- javajosh 9y agoThe most important contract, the JVM spec, is really good in Java, and that makes up for almost everything. Javalang and the standard library is generally very good about maintaining backward compatibility (almost to a fault, some would say). Of course, there is code in the wild that depends on, for example, the com.sun packages and so on, and that extend the JVM using JNI - in those cases, all bets are off. But that was always true, and I'd argue that such contortions are generally as ill-advised as they are rare. So, yeah, I think a faster release cadence is a good idea! Upgrading the runtime should be as simple as upgrading any other dependency.
- pgsandstrom 9y ago> Java8 won't be supported after January 2019, Java11 (LTS) will be release in September this year. Are they dropping support for the latest LTS just four month after releasing a new LTS? That sounds a bit harsh.
- akerro 9y agoThis is all subject to change, but so far it looks like it http://www.oracle.com/technetwork/java/eol-135779.html http://www.oracle.com/technetwork/java/eol-135779.html
- mason55 9y agoThis is my only problem with it. I can’t imagine it stays like that. I feel like there has to be at least a year of overlap between release of one LTS and deprecation of support for the previous one. Or at least a commitment to continue with security patches for longer (while stopping bug fixes and enterprise support)
- lovelearning 9y ago"Contract won't or shouldn't change" seems unrealistically idealistic to me. Java migration - or any platform for that matter - is not just migrating its language features but also its ecosystem - runtime, VM, GC, frameworks. There are many examples of migration problems for any platform - just have to google it. When information that can challenge our assumptions is just a google search away, I don't see why one should hold on to blind faith in idealistic assumptions. Here's one writeup of a system whose performance suffered simply by migrating to Java 8 without involving any code changes [1]. [1]: http://engineering.indeedblog.com/blog/2016/09/job-search-web-app-java-8-migration/ http://engineering.indeedblog.com/blog/2016/09/job-search-we...
- derriz 9y agoLinus may be occasionally obnoxious but I believe his "don't break user space" mantra is a significant reason why Linux is so popular. A similar attitude guided Windows development (until Vista) and it dominated the desktop world. In comparison your attitude seems user hostile to me. No "user" is interested in comparing theoretical specs with the behaviour of the reference implementation. They just want a tool to deliver solutions that work. For the first time in years, I'm looking at alternatives to Java for my next project. Java was always seemed to offer a pragmatic compromise in terms of language design and features and the availability of developers and libraries. Rapid breaking releases destroys most of the value of Java for me.
- yaseenk 9y agoJava is backwards compatible though. Code that was written in the 90s will still compile and run on JDK 10. It’s just now Java gets to iterate and improve more frequently and regularly. Regardless there are still LTS releases (every 3 years) for people who lean more conservative.
- evgeniysharapov 9y agoNot always and not quite. Here's an example of some type-foo with generics that works on Java 7 and not on Java 8 https://stackoverflow.com/questions/34659055/java-8-incompatible-types https://stackoverflow.com/questions/34659055/java-8-incompat...
- hyperpape 9y agoIf I read that correctly, the “breakage” is a bug fix, as that particular Java 7 compiler isn’t behaving according to the spec. You can argue that breaks backwards compatibility, but in the smallest, most innocuous way possible.
- kelnos 9y agoMy understanding after reading the answer to that SO question is that the behavior in 7 was a bug. New releases of javac aren't required to be bug-compatible with previous releases.
- earenndil 9y ago> Java8 won't be supported after January 2019, Java11 (LTS) will be release in September this year So we basically just have 3 months to migrate to the next LTS version??
- bhaavan 9y agoGiven that your company is still on JDK7, and is already saying a "fuck you" to new features, I don't think anything will change for you at all. You can continue ignoring newer features, but that doesn't mean everybody should. If they find value, they should have an option to move fast.
- jsiepkes 9y ago"We haven’t even finished migrating all our components to compile with JDK8 yet" Interested to hear which Java API you use which requires special modification in order to be compilable on Java 8? Usually most of this breakage is caused by the com.sun stuff which isnt public API.
- mrighele 9y agoIf you have written your regular enterprise web service you will probably not have very complex code (I'm not talking about business logic, but language features). But then you are using a 1 year old framework (if you're lucky) that depends on a version of library X that is 2 years old that depends on a 3 years old library etc. At the end of the chain you have a library that does low level stuff (bytecode instrumentation for example) and is a few years old. That is what may give you problems, and often the only practical solution is to update to a newer version of the framework, which can be quite expensive.
- cesarb 9y agoFor instance, if you depend on an old version of the Spring framework, using some Java 8 features (like lambdas) will break, since it generates bytecode Spring doesn't understand. Compiling as Java 7 prevents inadvertent use of these features.
- delecti 9y agoI'm curious, how large of a company did you work for such that you were able to easily upgrade your JDK version? Because I worked at a fairly large tech company and every one of our applications required some amount of manual intervention beyond figuratively switching all the "7"s to "8"s. That's despite the fact that hardly any of them were doing anything particularly complicated, and absolutely none of them were doing anything involving hidden com.sun APIs. I think it's just a consequence of such a large build system.
- shell_oil_101 9y agoYeah the reality of the situation is that it's never as straight-forward as just recompiling with the latest JDK. From my experience it wasn't generally code written in-house that'd cause problems (but sometimes it was), it was dependencies and transitive deps that required the older JDK (sometimes they relied on old bugs or old tooling, sometimes they just couldn't be recompiled on the new JDK for whatever reason). Build tools that relied heavily on JVM internals often couldn't upgrade for some time. Third parties integrating with your software and the new JDK brings a slight change in it's SOAP/XML/ser-deser stuff etc. That said, Java has been the best at backwards compatibility that I've tried, given it's popularity, and most of the pain was in the early days (like anything I suppose, see the Javascript world atm). Microsoft's offerings probably do backwards compatibility well, but then you get all the rest of the technical- and wallet-pain that that environment brings with it.
- g051051 9y agoThis is the same strategy that wrecked Eclipse and Firefox. Every 6 months is just too quick for most people to feel comfortable, and will cause fragmentation as the 3rd party ecosystem updates things at different rates.
- oblio 9y agoCounter example: Chrome.
- g051051 9y agoChrome makes continuous small changes. It doesn't make big breaking changes every 6 months, whether the community and ecosystem are ready or not.
- oblio 9y agoI don't get why Firefox gets flak, then. They broke compatibility with v57 exactly for that: to make continuous small changes. The previous situation was untenable since there was no API for extensions, the extensions could just go through Firefox internals and change at-will whatever they wanted. The whole point of WebExtensions is that they won't need to break compatibility after this huge leap.
- g051051 9y agoFireFox constantly broke all my extensions with just about every minor update. It was maddening. After being a die-hard FireFox/Netscape/Mozilla user since the 90's, I finally gave up a few years back and switched to Chrome. I can't recall a single time since then when my browser or extensions stopped working because of any update, not just a minor one.
- oblio 9y agoYou should maybe check things out again, cause that’s why they made this huge change in Firefox 57.
- sudhirj 9y agoNot sure that’s how it works. You don’t really need to update anything. Ubuntu runs on y monthly releases, for instance, and sees plenty of enterprise usage. The Linux kernel itself is updated as often, if not more. Google Chrome updates all the time. Ruby does yearly major releases, as do other languages. Go does six months, I think. Teams in charge of software release whenever they want or can, clients are free to use whatever version whenever they want. The problems only happen with breaking changes - and I haven’t seen a single case of Java breaking backwards compatibility (not counting cases where users intentionally used or relied on private implementation details).
- barkingcat 9y agoI think it makes total sense to have the language evolving on a scheduled basis rather than stagnate. If your company is only discussing moving to JDK9 now, what difference does it make that JDK10 is out? If you are using the free version, there is no real support. If you are a paying customer, Oracle will support you to the end of time while wringing every last cent out of your company. What difference does it make if the language keeps evolving? Do you expect the entire world to revolve around you and your company?