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
Tag: Java
Reducing JRE size
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
Java in Flux… a Java roadmap (kindof)
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]
EricDaugherty.com: Does Write Once Run Anwhere Work?
Eric Daugherty: Realistically, I think tools like GWT are the future. As a Flex developer, I enjoy the ability to quickly and easily create rich applications that will render the same on ever user's machine. But I would prefer that the Flex applications would compile to HTML and JavaScript, so they could be run native
Continue reading EricDaugherty.com: Does Write Once Run Anwhere Work?
Kindle Development Kit to use Java
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
GWT and JavaScript Date hell
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
Continue reading GWT and JavaScript Date hell
James Gossling: “so long, old friend”
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”
Google Collections Library 1.0 final
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
Support the Elvis proposal for Java !
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.
Mark Reinhold’s proposal for Java closures
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