Motivation Nearly every program includes some sort of logic that combines testing if an expression has a certain type or structure, and then conditionally extracting components of its state for further processing. For example, all Java programmers are familiar with the instanceof-and-cast idiom: if (obj instanceof Integer) { int intValue = ((Integer) obj).intValue(); // use […]

Read more

Busy Java Developer’s Guide to Hacking in Java Ever since its 1.1 release, the Java Virtual Machine steadily becomes a more and more “hackable” (configurable, pluggable, customizable, choose your own adjective here) platform for Java developers, yet few, if any, Java developers take advantage of it. Time to take the kid gloves off, crack open […]

Read more

Does the mooted September 22nd  2016 release date for REPL packing Java 9 seem more odious than the Star Wars Episode VII countdown? (52 days, 12 hours, 13 minutes and 46 seconds at time of publication, in case you were wondering.) Has the thrill of pleasure you got from unpacking Java lambdas already dissipated, leaving your […]

Read more

A couple of weeks back we took a detailed look into default methods – a feature introduced in Java 8 which allows to give interface methods an implementation, i.e. a method body, and thus define behavior in an interface. This feature was introduced to enable interface evolution. In the context of the JDK this meant […]

Read more

As any Java user will be more than aware, platform security is certainly nothing to be taken to granted. This week, Oracle have issued their Q3 wave of critical patch updates (154 in all), with 25 directed at Java. Along with plugs for a series of library issues, the CPU contains fixes targeting security and […]

Read more

I really enjoy writing and reading lambda expressions – they’re succinct, expressive and fashionable (come on, like that doesn’t matter a little!). Compare that to anonymous classes which are neither of those things. Which is why I like to get rid of them! This realization slowly materialized itself over the last months and yesterday my […]

Read more

Did you ever want to substitute the equals and hashCode methods a HashSet orHashMap uses? Or have a List of some element type masquerade as a List of a related type? Transforming collections make that possible and this post will show how. Overview Transforming collections are a feature of LibFX 0.3.0, which will be released […]

Read more

Defining and Editing log4j Patterns in SysLog for more Refined Data Parsing XpoLog’s updated version is already here and will not overlook any piece of raw data, no matter how small or insignificant it may seem. In this series of posts I am covering some of the ways you can benefit from XpoLog V6’s new […]

Read more

Good news if you’ve been following the progress of MVC 1.0 Reference Implementation (RI) Ozark, and by extension JSR 371, which all sit under the Java EE 8 umbrella  – Ozark Milestone 2 is now available for download. Before we jump into the details, a quick recap: JSR 371 MVC 1.0 specification is all about […]

Read more

This week has seen the programming world gorging itself on yet another piping hot pan of FUD fudge, thanks to a recent missive to InfoWorld by “a former high-ranking Java official.”   In an article titled, “Insider: Oracle has lost interest in Java,” Paul Krill laid out the main thrust of the email, which apparently […]

Read more