mreinhold's Blog
301 Moved Permanently
- Login or register to post comments
- Printer-friendly version
- mreinhold's blog
- 1349 reads
Mustang Maintenance Review 1
Yesterday we posted the first Maintenance Review for the Mustang (Java SE 6) release.
This review describes the details of all the changes and additions made to the Java SE platform specification in Mustang that aren’t themselves specified by their own JSRs. Small enhancements such as the new java.awt.Desktop class, e.g., are specified in this maintenance review, whereas a big new feature like the compiler API is specified by its own JSR, 199.
The maintenance review also contains countless small corrections to the platform specification. The bulk of these are summarized in a set of API difference pages which show the changes made between Tiger and Mustang.
This is just the first Mustang maintenance review, reflecting the content of the first beta release. There’ll be another MR around the time of the second beta release, and a final MR for the release candidate. The second and third MRs are expected to be much smaller than the first.
The past is prologue
How is it that we’re doing a maintenance review for Mustang when Mustang hasn’t even been finished yet?
Good question! In fact technically this is a JCP Maintenance Review of the Tiger (J2SE 5.0) specification, JSR 176. This is just an artifact of the way that the Java Community Process works. The smaller, non-JSR changes and additions in the Tiger release, likewise, were covered in maintenance reviews of the Merlin (J2SE 1.4) specification, JSR 59.
Comments welcome!
The formal MR-1 period ends in thirty days, but you can send feedback to the e-mail address listed in the review materials at any time.
- Login or register to post comments
- Printer-friendly version
- mreinhold's blog
- 1072 reads
Mustang Beta Blog Carnival!
After nearly eighteen months of effort within Sun, the Java Community Process, and the wider JDK Community, the Mustang Beta Release is now available.
In contrast to the source and binary snapshots that we’ve been shipping for over a year, the formal beta release has been through many weeks of intensive testing—and a tiny little bit of last-minute bug-fixing—in order to produce a release that’s somewhat more polished. If you’ve chosen to avoid the riskier snapshot builds then now is the perfect time to have a look at Mustang, make sure your existing code still compiles and runs, and try out the new features. Please do let us know what you think or—even better—get involved and help us make Mustang a great release for the entire community!
To help celebrate the beta release I’m hosting a “blog carnival” right here on this page. Over the next couple of days many members of the Java SE development community will post blog entries about the work they’ve been doing for the Mustang release. As entries are posted I’ll add them here for convenient reference; alternatively you can get the very latest blog entries via Planet JDK, which also provides RSS and Atom syndication feeds.
Step right up, ladies and gentlemen…
Chet Haase channels Julie Andrews and waxes poetic about his favorite Mustang features.
Brian Doherty reflects on the meaning of the word “beta” in this modern age of continuous integration and snapshot releases, and talks about some of the performance improvements—and pitfalls—in the release.
Chris Hegarty explains how he fixed a high-vote bug in the HTTP keep-alive implementation.
Sundar shows how to use DTrace on Solaris to generate a mixed-mode stack trace whenever an exception is thrown.
Jaya Hangal talks about LDAP timeouts and connection pooling in JNDI.
Scott Violet takes a break from big-picture application architecture to highlight some of the smaller UI features in Mustang.
Peter von der Ahé talks about the compiler plugins—known more formally as annotation processors—that are enabled by the Tree API, JSR 269, and JSR 199.
Sean Mullan summarizes the new security features in the release.
Shannon Hickey introduces the new support for choosing drop actions in the Swing Drag and Drop API.
Mandy Chung shows off six techniques for diagnosing memory-usage problems.
Madhura Dudhgaonkar explains why Mustang Beta is based on the relatively ancient build 59 even though the latest snapshot release is build 71.
David Herron posts a helpful reminder of the Mustang Regressions Challenge, in which you can win a slick new Opteron-based Ultra 20 workstation if you find a really egregious regression. (No purchase necessary, void where prohibited by law, etc.)
Éamonn McManus summarizes the new JMX features.
Chris Campbell argues with himself over whether or not the beta build is too passé, and also takes stock of the work that he and his team have been doing.
Preveen Mohan talks about some of the new AWT features in Mustang from the standpoint of a QA engineer.
Naoto Sato describes the new Locale Sensitive Services SPI.
Danny Coward muses on how the new Compiler API is going to keep javac up and running 24/7/365.
Penni Henry, the new Mustang Program Manager, reflects on the quality of the release from the perspective of someone relatively new to the team.
Gauri Sharma discusses the ongoing work on the Mustang JCK (Java Compatibility Kit).
Jon Masamitsu wonders whether those who want a truly “pauseless” garbage collector would be willing to pay for it in the currency of time and space.
Andreas Sterbenz shows how to plug NSS into the Java PKCS#11 crypto provider in order to improve performance on Linux and Windows.
Finally, in my other blog you can find a description of the new class-path wildcard feature.
That’s it for now!
Questions and answers
To answer a few of the questions that’ve been asked in the comments below:
The beta release is based on weekly build 59 from way back in November 2005. Madhura talks a bit more about why it’s so “old.”
Every bug fixed in a later snapshot build will stay fixed for the final release unless a problem with the fix is found in the interim and no alternative solution can be devised.
The evaluation license is a bit, well… baroque. We’re talking to our legal team to see if the part about having to notify Sun can be removed.
- Login or register to post comments
- Printer-friendly version
- mreinhold's blog
- 3164 reads
Mustang Release Contents (JSR 270): Early Draft Review
Just in time for the holidays!
The Early Draft Review version of the JSR 270 specification, which governs the content of the Java SE 6 “Mustang” release, is now available.
JSR 270 is an “Umbrella” JSR, so it doesn’t define specific features itself—instead it lists features defined in other JSRs, or in the concurrent maintenance review of the Java SE platform specification. As an improvement over past umbrella specifications, this time around we’ve augmented each feature description with non-normative links to the relevant draft Mustang javadoc as well as any associated JSRs or other material.
When reviewing this draft please keep in mind that the Umbrella JSR only covers the component JSRs and other big-ticket or highly-visible items in Mustang. Most smaller enhancements aren’t listed in the Umbrella JSR, though of course they will be covered in the maintenance review of the platform specification that’ll start around the time that the beta release of the reference implementation ships.
Mustang is still under development. The JSR 270 Expert Group has approved all of the features listed in the draft, and we expect to see all those features in the final release. It’s still possible, however, for a feature to be dropped if, for example, it turns out to be too difficult to implement. It’s also possible for new features to be added, given sufficient justification, though at this stage big changes to the overall shape of the release are pretty unlikely.
Comments on this draft are most welcome! The formal EDR period ends in sixty days, but you can send feedback to the e-mail address listed in the draft at any time.
Sneak Preview
Here’s a summary of the approved feature list sorted by area, component, and feature name. For more details please see the EDR specification.
| client | 2d | GIF image writer |
| awt | Access to desktop helper applications | |
| Fast splash screens | ||
| Improved modal dialogs | ||
| System-tray support | ||
| i18n | Pluggable locale data | |
| Resource-bundle enhancements | ||
| Unicode string normalization | ||
| swing | Baseline/gap APIs | |
| Improve Swing drag-&-drop | ||
| JTabbedPane: Tabs as components | ||
| JTable sorting, filtering, and highlighting | ||
| SwingWorker | ||
| Text-component printing | ||
| core | – | JSR 223: Scripting for the Java Platform |
| debug | Access to heap contents | |
| Attach-on-demand | ||
| Multiple simultaneous agents | ||
| libs | Array reallocation | |
| Collections: Deques | ||
| Collections: Sorted sets and maps with bidirectional navigation | ||
| Critical file-I/O enhancements | ||
| Floating point: Add core IEEE 754 recommended functions | ||
| java.util.concurrent updates | ||
| JSR 202: Java Class-File Specification Update | ||
| Password prompting | ||
| Reflective access to parameter names | ||
| Service-provider lookup | ||
| m&m | Generalized lock monitoring | |
| Generalized MBean descriptors | ||
| Generic annotations for MBean descriptor contents | ||
| MXBeans | ||
| net | Internationalized domain names | |
| Internationalized resource identifiers | ||
| Programmatic access to network parameters | ||
| Simple HTTP cookie manager | ||
| sec | JSR 105: XML Digital-Signature APIs | |
| tools | JSR 199: Java Compiler API | |
| JSR 269: Pluggable Annotation-Processing API | ||
| ee | – | JSR 250: Common Annotations |
| jdbc | JSR 221: JDBC 4.0 | |
| xml | JavaBeans Activation Framework (JAF) 1.1 | |
| JSR 173: Streaming API for XML (StAX) | ||
| JSR 181: Web-Services Metadata | ||
| JSR 222: Java Architecture for XML Binding (JAXB) 2.0 | ||
| JSR 224: Java API for XML Web Services (JAX-WS) 2.0 |
You can check out the initial implementations of many—though not all—of these new features in the weekly snapshot builds of the reference implementation.
- Login or register to post comments
- Printer-friendly version
- mreinhold's blog
- 1384 reads
planetjdk.org now publishes syndication feeds
By popular demand Planet JDK now publishes both an RSS feed and an Atom feed.
The Atom feed is in the version 0.3 format (sorry Tim); I'll set up an Atom 1.0 feed just as soon as ROME supports that version, which hopefully will be fairly soon.
As I mentioned previously, Planet JDK is open to anyone who's contributed code into the Java SE Development Kit. If you've contributed a Mustang fix and your blog isn't listed on planetjdk.org then drop me a note and I'll add it.
- Login or register to post comments
- Printer-friendly version
- mreinhold's blog
- 639 reads
Announcing planetjdk.org
Many members of the JDK Community are active bloggers, but there's no one place where you can go to find their blogs. Quite a few can be found on java.net, but lots of Sun employees have blogs elsewhere—most often on blogs.sun.com—and of course non-Sun employees have blogs all over the web.
To help address this problem I've hacked up a simple aggregator and put it up on the web at planetjdk.org. I didn't have to write much new code for this since the ROME project already does the heavy lifting of parsing syndication feeds in all of their splendiferous complexity. It's still a little rough around the edges—it doesn't publish aggregated feeds itself yet, for example, but that will come soon. It's running, naturally, on the very latest Mustang build.
I've populated planetjdk.org with feeds for all of Sun's Java SE bloggers. I've also added feeds for the blogs of anyone who's contributed a fix to Mustang—at least insofar as I could find them via Google. If you've contributed a Mustang fix and your blog isn't listed on planetjdk.org then drop me a note and I'll add it.
- Login or register to post comments
- Printer-friendly version
- mreinhold's blog
- 853 reads
Mustang Component JSRs
The JSR 270 Expert Group recently decided upon the set of component JSRs that will appear in Mustang, a.k.a. Java SE 6. Here they are, grouped together by area:
| 202: | Java Class File Specification Update | |
| 199: | Java Compiler API | Ease of Development |
| 269: | Pluggable Annotation Processing API | |
| 260: | Javadoc Tag Update | |
| 221: | JDBC 4.0 | |
| 223: | Scripting for the Java Platform | |
| 105: | XML Digital Signature | XML |
| 173: | Streaming API for XML | |
| 222: | JAXB 2.0 | |
| 181: | WS Metadata | Web Services |
| 250: | Common Annotations | |
| 224: | JAX-WS 2.0 (formerly JAX-RPC 2.0) |
There are a few differences between this set and the set originally proposed in JSR 270:
- JSR 173, the Streaming API for XML, was added; it's a prerequisite for both JAXB 2.0 and JAX-WS 2.0.
- JSRs 181 (WS Metadata), and 250 (Common Annotations) were added; these are prerequisites for JAX-WS 2.0.
- There is no JSR for "JAXP.next"; instead a minor maintenance revision of JAXP will be proposed for Mustang.
- JSR 268, the Java Smart Card I/O API, was dropped. Platform implementors are of course free to deliver an implementation of this JSR alongside their Java SE 6 implementations, which is what Sun intends to do, but JSR 268 won't be a required part of the platform.
Mustang's final release is slated for the third quarter of 2006. A lot could change between now and then, but unless something truly surprising happens then these are the JSRs that will appear in Mustang.
- Login or register to post comments
- Printer-friendly version
- mreinhold's blog
- 1537 reads
Mustang: Experts Wanted
JSR 270, the umbrella JSR for J2SE 6.0 ("Mustang"), was resoundingly approved by the JCP Executive Committee for J2SE/J2EE earlier this week.
The expert group already has some initial members; we'll be accepting additional applications through Monday, 14 March. We won't be able to accept every application, of course, since we'll need to strike a balance between having broad representation from the community and having a manageable group that can make decisions in real time. If you'd like to help guide the future direction of the platform, please consider applying to join.
- Login or register to post comments
- Printer-friendly version
- mreinhold's blog
- 1153 reads
Mustang Snapshots: Another experiment in openness
Way back when I was an undergrad I had a professor who was a stickler for experimental method. She was also, however, always anxious to see what you had learned. As soon as she understood your experimental setup -- which was usually before the end of your explanation of it -- she'd insistently ask, "What were your results?" Between her enthusiasm for the question and her eastern-European native tongue the last word would always come out as "RHEE-zults". That question, and her unique pronunciation, have stuck in my head ever since...
Last June we did a first "experiment in openness" with the Tiger Snapshots. We posted each weekly Tiger build, in binary form, from the Beta 2 release right up to the Release Candidate. The results were positive: About ten thousand brave souls downloaded the builds and filed several dozen bugs, and the most critical handful of those bugs was fixed in time for the RC build.
Inspired by the success of the Tiger snapshots, today we posted the first of the Mustang Snapshots. We've made some significant changes this time around:
-
We've started earlier. You can get build twelve today. Yes, that's twelve as in 12. There aren't a whole lot of changes in this build, mainly just bug fixes and a few small enhancements here and there, but you'll see more change going forward as new features are integrated.
As usual, snapshot builds are not for the timid. They receive only limited testing -- just a few hours' worth to make sure that they're warm and breathing. If you want stability then you'd best wait for the Mustang beta release, but if you enjoy living on the bleeding edge then these builds are for you.
-
We're shipping source bundles. For the first time ever we're shipping source bundles for a J2SE release while it's under active development (gulp). This should make it easier for interested developers to contribute to the release as it evolves. In past releases the only ways to do that were to be lucky and know someone at Sun, or be lucky and have your suggestion survive the labyrinthine gauntlet of the bug-submission process.
Posting source bundles will also make it easier for us to be embarrassed by our mistakes, but we're quite happy to be arbitrarily embarrassed in exchange for higher quality.
-
We're using java.net. One of the big goals here is to engage better with the developer community, and java.net provides excellent infrastructure for that. The bundles are being hosted in the overall j2se project, which will shortly acquire the other usual project accoutrements such as mailing lists and forums. We're also working on a streamlined process for patch submission so that you can send code directly to real live JDK engineers rather than paste it into a bug report, cross your fingers, and hope for the best.
-
We're using a new license. The source bundles are covered by the Java Research License. The JRL is, to my non-lawyerly brain, a big improvement over the old SCSL license -- for one thing, I can understand it! The JRL also gives developers and researchers more flexibility than SCSL did, though it's still not an actual open source license in OSI terms (sorry).
Taken together these changes obviously entail a much bigger, and longer, experiment than the Tiger Snapshots. We certainly don't want to wait until the end to learn from the experience and make adjustments. If you have ideas on how we could do any of this better, please let us know!
- Login or register to post comments
- Printer-friendly version
- mreinhold's blog
- 1323 reads
Tigers and Mustangs and Dolphins, Oh My!
Tiger is done.
Whew! I can just about hear the collective sigh of relief from everyone, both inside and outside of Sun, who contributed to this amazing product. We hope you enjoy working with it. As I've said before, I think Tiger is the highest-quality JDK that we've ever built -- and I've been helping to build these things since JDK 1.1.
This seems an appropriate time to look forward, and in particular at some changes that we're making to the J2SE release model.
The current model has three kinds of releases:
- Feature releases are the big ones
(1.3, 1.4,
1.55.0), with tons of bug fixes and lots of new features. These have generally been about 24-36 months apart. - Maintenance releases, the so-called "dot-dot" releases (1.4.1, 1.4.2, etc.), have lots of bug fixes but no new API features. Lately these have been about 8-10 months apart.
- Update releases, the so-called
"underscore" releases (1.4.2_01,
1.5.0_015.0 update 1), which contain a very small number of bug fixes (typically around 100) carefully chosen to meet urgent customer needs. Sun has shipped these about every 3-4 months.
- Feature releases will ship every 18-24 months. This will allow the platform to evolve more rapidly so as to better meet the needs of the developer community and compete with .NET.
- There won't be any more maintenance releases. Starting with Tiger (5.0) there won't be any more releases the size of 1.4.1 and 1.4.2, i.e., with 1500-2000 bug fixes. There still might be a release called "5.1", but it will just be a special update release.
- Update releases will ship every 2-3 months. This will make it possible for critical bug fixes to be delivered to customers in a more timely manner.
- Releases will more likely ship on time. Within the J2SE engineering organization we've long wrestled with the difficult choice of making the current maintenance release as perfect as possible versus working on great new features for the next big feature release. This conflict has been the proximate cause of many schedule slips over the years. The new release model finally resolves this fundamental tension: J2SE engineers will, by default, always be working on the next feature release. There will be times when they're asked to fix a critical bug in an update release, and even rarer times when some nontrivial work (e.g., to improve performance) will be done in an update release, but these will be the exceptions rather than the rule.
- Release adoption will improve. The existing medium-sized maintenance releases have long been a big adoption barrier. Due to the level of change in these releases many users have only been confident enough to adopt them after requalifying all of their applications -- in other words, by treating them much like feature releases in terms of testing. Most users are confident enough in the update releases to just "drop them in" without doing a lot of testing; now they'll be able to do so for a longer time in between feature releases.
- Login or register to post comments
- Printer-friendly version
- mreinhold's blog
- 1026 reads



