Skip to main content

Never Touch That Switch

Posted by editor on January 28, 2009 at 6:23 AM PST

Switch on string, multi-exception catch, and other sweet small changes

One of the Java 7 features announced by Mark Reinhold at Devoxx '08 is a yet-to-be-numbered "small language changes" JSR. This is the catch-all for a lot of the little stuff many of us have wanted for ages: a switch statement that works with strings, the ability to combine multiple Exception types into a single catch if we're going to handle them all the same way... little things that don't have a high potential for breakage and would improve productivity. Still, what's going into that JSR, and even the process for getting there, has dangled as a to-do for months.

But the process takes another step forward today, as the doors are being opened to change proposals. In his blog, Joe Darcy announces the opening of the "Small Language Changes for Java 7" project in Project Coin: Small Language Change Proposal Form Available.

The name of the OpenJDK project hosting small language changes for JDK 7 will be Project Coin. Besides a coin literally being small change, to "coin a phrase" is to create a little bit of new language. The website for the project and its mailing lists will come into being this February. In the mean time, the initial form to use to propose a language change is listed below. If you have an idea for a change, please work on the form and post it the Project Coin mailing list once that gets started.

If you're proposing a change, be sure to keep in mind the criteria for small language changes announced earlier. In general, changes that get into the JSR will be those that can't be accomplished through other means (tooling, libraries, etc.), and whose benefits far outweigh their implementation costs.

Also in Java Today, the JCP has announced that a Special Election will be held next month to fill an open seat on the ME executive committee. The seat is for a term ending in 2010, replacing Intel. Nominations will be open from February 3 to 17 to all JCP members. Would-be nominees should investigate the JCP's Executive Committee Info page to understand the process and responsibilities, The election itself will take place later in February, after the nominations period.

Ed Ort and Carol McDonald continue their SDN series on enterprise application development in GlassFish and MySQL, Part 3: Creating and Using a Web Service. "In Part 3, you'll learn how easy it is to convert the controller layer of the web application, that is, the layer of the application that performs the CRUD operations -- into a web service. You'll also learn how to create a client for the web service. As was the case for the web application discussed in Part 2, the web service discussed in Part 3 uses GlassFish, MySQL, and the Java Persistence API."

The latest Java Mobility Podcast is Java Mobility Podcast 69: Live from Mobile, Media & eMbedded Developer Days, for which Daniel Steinberg did a walk about the floor at the Mobile, Media and eMbedded Developer Days, soliciting comments from the various attendees.

In today's Weblogs, John Reynolds wonders if BPM is
Programming or Software Engineering? "There's an interesting thread going on over at InfoQ regarding the relationship between BPM and Software Engineering.
One subtext of this discussion raises a wider question - When is it "Programming" and when is it "Software Engineering"?"

In Networking: Ensure data integrity in a decentralized storage system, Alois Cochard wonders "How to ensure data integrity in a public decentralized storage system? This article describe a possible solution, this concept gonna be implemented in my java decentralized computing platform project."

Finally, Fabrizio Giudici proclaims God bless Stephan Janssen and BeJUG :-) "The 2009 edition of Devoxx (former JavaPolis) will be held in November (16-20) instead of December, as shown in the web site of the conference (and announced in the latest newsletter)."

In today's Forums, jacobspd describes a
Java2d Hardware Scaling Visual Artifact Problem w/Bilinear Interpolation. "When drawing an image to a Graphics2d using the Direct Draw / Direct 3d pipeline, I'm encountering an odd issue with bilinear interpolation: the bilinear interpolation seems to be applied to every 256x256 block of the source image separately. This results in a "seaming" artifact at the borders of each 256x256 block. Within each block, the interpolation makes sense, but there's a sharp discontinuity where the blocks meet. The artifact is always present where the 256x256 block boundaries occur in the source image, regardless of how large or small the image is scaled on screen. Disabling the DirectDraw pipeline eliminates the artifact. Is this a known problem? Is there an easy workaround?"

kamre has a
Java Quick Starter IO activity question. "My question is about jqs.exe IO activity: it seems that it reads about 8Mb from disk every 30 seconds, is this the intended behaviour? Just look at the history graphics (after several minutes of idle): All this IO peaks were from jqs.exe. So it is the only process in the system with such IO activity when computer is idle. And that is rather strange. Probably this not a question for desktop computer, but for laptop this IO activity is not acceptable (I have to turn off JQS on laptop)."

Finally, apena has some Doubts about LWUIT & MHP STB. "I saw the demo of your javatv project and I think it