When you code some pipeline processing of a stream in Java 8, it might happen that a method you want to use throws a checked exception. What happens then ? The compiler complains because checked exceptions don’t bubble up like you’d naively expect; in other words you should deal with the exception when it happens,
Continue reading Checked exceptions in Java 8 streams
Until Java 9 is ready, there is still an option if you need to reduce the size of a bundled JRE: exclude some files! This is totally official and supported by Oracle; in fact all the files you can exclude from a JRE are listed in the JRE’s README (unfortunately with a few persisting typos…)
Continue reading Reducing JRE size
Must read keynote from the TSSJS conf last week… I was thrilled by the Aeon Flux reference btw 🙂 [edit: the presentation has been removed and is no longer accessible… you can read the related blog entry here. Thanks Chris for making me aware of this]
Continue reading EricDaugherty.com: Does Write Once Run Anwhere Work?
Amazon has unveiled the details of its development kit for its Kindle e-book reader. The so called “Kindle development kit for active content” (or KDK) will be based on Java 1.4 Personal Basis Profile (JSR 217); custom additional APIs will be available for networking, local storage, specific UI components, etc. (see javadoc). As strongly as
Continue reading Kindle Development Kit to use Java
You’d think that in 2010, date processing is something that is easily done in Java (and hence GWT), in a consistent cross-platform way. And you’d be wrong. When I’m talking date processing, I mean simple calendar date (not time) operations, like: get today’s date, add a number of days, compute the number of days between
This is what James Gossling posted on his blog yesterday… Like so many commenters, I also spent the majority of my professional career with Sun technologies, mostly Java. Whatever happens next, it’s a new era that begins. Fortunately, the company with a big G has embraced Java, and that is probably where the future lies,
Continue reading James Gossling: “so long, old friend”
The Google Collections Library 1.0 is a set of new collection types, implementations and related goodness for Java 5 and higher, brought to you by Google. It is a natural extension of the Java Collections Framework. We have finally (Dec 30, 2009) released version 1.0-final! The API is now frozen: there will be no more
Continue reading Google Collections Library 1.0 final
Are you tired of writing (x != null) ? x.getThis() : null Would you rather write something like x?.getThis() If so, support the Elvis proposal for Java ! Interesting alternative notations can be found here.
I believe this proposal, although incomplete, to be much more acceptable to the current Java community than existing BGGA or FCM. Most proposals state that it’s not the syntax that matters, it’s the semantics. While this is undoubtedly true, syntax is the first thing a programmer will see and judge the feature by. If the
Continue reading Mark Reinhold’s proposal for Java closures