Tuesday June 02, 2009
Joseph D. Darcy's Sun WeblogJoseph D. Darcy's Sun Weblog JavaOne 2009: Project Coin Slides Posted I presented my technical session about Project Coin, titled more verbosely Small Language Changes in JDK™ Release 7, this afternoon at JavaOne. I've posted the slides. Besides discussing the proposals under further consideration, I also went over some of the experiences from JDK 5 and other considerations we take into account when evolving the language. (2009-06-02 18:48:34.0) Permalink Comments [13]Project Coin: For further consideration, round 2 The first group of proposals selected for further consideration were:
After due deliberation, and next set of proposals meeting the Project Coin criteria for further consideration are:
All the selected proposals were reviewed and judged to have favorable effort to reward ratios and to preserve the essential character of the language. Work should continue refining the selected proposals and producing prototypes. In particular, a unified proposal for integer literals should be produced. Language change proposals not on the combined "for further consideration" list will not be included in JDK 7; there is no need for continued discussion about them on the Project Coin mailing list. Detailed rationales for why particular proposals were not selected will not be provided. Final selection of the five or so proposals to be included in the platform will occur within the next few months. (2009-05-27 20:43:57.0) Permalink Comments [9]OpenJDK 6: Regression test results for b16, take 2 The corrected source bundle for b16 has slightly different regression test results than the original one. The langtools and hotspot results are the same, but the jdk area has a different difference from b14/b15:
Comparing the initial and corrected builds of b16: (2009-05-02 13:18:00.0) Permalink Comments [1]0: b16-jdk/summary.txt pass: 3,079; fail: 27; error: 4 1: b16a-jdk/summary.txt pass: 3,085; fail: 29; error: 4 0 1 Test pass fail java/awt/Focus/FrameMinimizeTest/FrameMinimizeTest.java --- pass java/beans/PropertyEditor/TestEnumSubclass.java --- pass java/beans/PropertyEditor/TestEnumSubclassJava.java --- pass java/beans/PropertyEditor/TestEnumSubclassNull.java --- pass java/beans/PropertyEditor/TestEnumSubclassValue.java pass fail java/rmi/transport/pinLastArguments/PinLastArguments.java --- pass java/util/concurrent/Semaphore/RacingReleases.java --- pass javax/sound/midi/Gervill/SoftChannel/NoteOverFlowTest.java --- pass javax/sound/midi/Gervill/SoftFilter/TestProcessAudio.java --- pass javax/sound/midi/Gervill/SoftLowFrequencyOscillator/TestProcessControlLogic.java 10 differences OpenJDK 6: Regression test results for b16 Update: Regression test results for the corrected b16 source bundle are now available. Running with the usual jtreg flags, -a -ignore:quiet always and -s for the langtools area, the basic regression test results on Linux for OpenJDK 6 build 16 are:
In this build, many of the bugs fixed were for security issues or ports of fixes already in JDK 7. The HotSpot test results were stable: 0: b14-hotspot/summary.txt pass: 3 1: b16-hotspot/summary.txt pass: 3 No differences In langtools all the tests continue to pass and a new test was added: 0: b14-langtools/summary.txt pass: 1,351 1: b16-langtools/summary.txt pass: 1,352 0 1 Test --- pass tools/javac/processing/6512707/T6512707.java 1 differences And in jdk, a few new tests were added in b16 and the existing tests have generally consistent results:
(2009-04-16 00:00:01.0)
Permalink
Comments [0]
OpenJDK 6: b16 Source Bundle Published Update: Due to a misunderstanding, some of the expected fixes were missing from the original b16 source bundle. The corrected bundle has subsequently been posted. On April 15, the source bundle for OpenJDK 6 b16 was published. The previous source bundle was for b14. There was no distinct b15 per se; b15 was used to mark the transition from teamware to Mercurial. The b16 build is the first to be done purely in Mercurial. There were 45 bug fixes in this build ranging from security fixes to sound updates; OpenJDK 6 b16 has all relevant security fixes from the recent JDK synchronized security release. A few fixes of note, during a build importing the binary plugs now defaults to false (6781572) and several fixes were applied that should render a few IcedTea patches unnecessary: 6736248 EnumEditor bug. Class check incorrect 6733718 test /java/awt/FullScreen/UninitializedDisplayModeChangeTest/ fails 6593946 (bf) X-Buffer.compact() does not discard mark as specified 6778493 Fix (langtools) ant build to honor fcs MILESTONE setting The other non security bugs fixed in this build are:
JavaOne 2009: Small Language Changes in JDK™ Release 7 My JavaOne 2009 proposal for a talk about Small Language Changes in JDK™ Release 7 was accepted and scheduled for the first day of the conference, 3:20 PM to 4:20 PM on June 2, 2009. Besides discussing experiences evaluating proposals submitted to Project Coin, I plan to include some broader thoughts on Java language evolution, including sharing some informative war stories from back in JDK 5. (2009-04-15 12:32:07.0) Permalink Comments [2]Project Coin: The Call for Proposals Phase is Over! Update: Added links to proposal for switch for all types and simple expressions and a link to a revised method chaining proposal. Project Coin's call for proposals phase is now over! Thirty four days long, the proposal period included nearly 70 proposals being sent to the mailing list, 19 coming in over the last two days, and over 1100 messages on the list discussing those proposals and related topics. With the flurry of pre-deadline activity over, the more deliberative task of finishing reviewing and evaluating the proposals awaits. Including several sent in a few hours after deadline, the proposals received since week four are:
The figure below graphs when proposals were received; nothing like an impending deadline to focus the mind!
Sometime after the next for further consideration cut is made, I'll post some thoughts on and reaction to the call for proposals phase as a whole. This will not include a detailed analysis of why each proposal was or was not chosen; however, there will be discussion of common aspects of proposals that led them to be selected or not. (2009-03-31 17:26:42.0) Permalink Comments [2]Update: Corrected to include Stephen Colebourne's enhanced enhanced for loop proposal. Further update: Added links to updated large arrays and compile time access proposals. Project Coin's fourth week saw continued lively traffic on the mailing list. As the submission deadline approaches, a flurry of new proposals were sent in:
The field of over two dozen proposals previously sent in over the first three weeks of Project Coin was narrowed to six proposals still in consideration for inclusion in JDK 7. The proposals submitted this week and until the end of the call for proposals period will be similarly evaluated for their appropriateness to be added to the language. Finally, the combined list of candidate changes will be produced. (2009-03-27 17:36:11.0) Permalink Comments [6]
For those interested in specifically following Project Coin related posts, my Project Coin entries are tagged with "projectcoin": Project Coin: For further consideration... In the first three weeks of Project Coin over two dozen proposals have been sent to the mailing list for evaluation. The proposals have ranged the gamut from new kinds of expressions, to new statements forms, to improved generics support. Thanks to all Java community members who have sent in interesting, thoughtful proposals and contributed to informative discussions on the list! While there is a bit less than a week left in the call for proposals period, there has been enough discussion on the list to winnow the slate of proposals sent in so far to those that merit further consideration for possible inclusion in the platform. First, Bruce Chapman's proposal to extend the scope of imports to include package annotations will be implemented under JLS maintenance so further action is unnecessary on this matter as part of Project Coin. Second, since the JSR 294 expert group is discussing adding a module level of accessibility to the language, the decision of whether or not to include Adrian Kuhn's proposal of letting "package" explicitly name the default accessibility level will be deferred to that body. Working with Alex, I reviewed the remaining proposals. Sun believes that the following proposals are small enough, have favorable estimated reward to effort ratios, and advance the stated criteria of making things programmers do everyday easier or supporting platform changes in JDK 7:
As this is just an initial cut and the proposals are not yet in a form suitable for direct inclusion in the JLS, work should continue to refine these proposed specifications and preferably also to produce prototype implementations to allow a more thorough evaluation of the utility and scope of the changes. The email list should focus on improving the selected proposals and on getting any remaining new proposals submitted; continued discussion of the other proposals is discouraged. The final list of small language changes will be determined after the call for proposals is over so proposals sent in this week are certainly still in the running! The final list will only have around five items so it is possible not all the changes above will be on the eventual final list. (2009-03-24 15:21:00.0) Permalink Comments [8]Project Coin's third week was another week of lively traffic on the mailing list. New proposals were sent in:
existing proposals were revised:
and discussion continued on ARM and other proposals. The scoping and utility of a few pre-proposals was discussed on the list too. Ten days remain to get language change proposals in! (Purely libraries changes will be handled by other JDK 7 processes.) (2009-03-20 10:37:34.0) Permalink Comments [2]After the vigorous start of week 1, the pace of new proposals being sent to the list slowed:
However, brisk discussion continued on refining and exploring ARM blocks and their variations. (2009-03-13 09:30:00.0) Permalink Comments [1]Language Model Changes as of JDK 7 Build 50 To date, there have been a few API changes to javax.lang.model.* in JDK 7. Early in the release, SourceVersion.RELEASE_7 was added to correspond to any new source-level changes coming in JDK 7 (6458819). Eventually, there will be changes to support the modulue construct being added by JSR 294; changes may or may not be needed for language changes coming from Project Coin and JSR 308. Once modulues are added, the JSR 269 API elements meant to cope with the expression problem will be tested. In the mean time, some minor API cleanups have occurred, one to make handling exceptions easier (6794071), another to group common functionality in mixin interfaces (6460529), and some minor API clarifications (6501749). Along the way, there has been a little general bug fixing too (6478017, 6583626, 6498938). Small tweaks and bug fixing will continue to occur in the javax.lang.model.* and javax.annotation.processing packages throughout JDK 7 in addition to changes needed to support new language features. (2009-03-12 13:36:36.0) PermalinkExpanding on a few slides from my JavaOne talk last year, here are a few tips to keep in mind when designing exception types. First, all exceptions are serializable since Throwable implements Serializable; therefore, like all other serializable classes, exception types should declare a serialVersionUID field to ease evolving the type in the future. Using's javac's -Xlint:serial option will warn about missing serialVersionUID fields on serializable classes, amongst other possible issues. Second, when adding a new exception class, consider providing more information beyond just a distinct name, such as methods to return information about what specific situation triggered the exception and possibly how to recover from it. Providing this additional information can interact with being serializable; when the additional information is not logically serializable, the specification may need to allow the information to be unavailable after deserialization. Third, when multiple related exceptions types are added, a common direct superclass allows a single catch block to handle the related exceptions uniformly. (Having a common super-exception would still be useful even if multi-catch is added to the language in JDK 7.) Looking at the exceptions in the JSR 269 API, various methods note the possible impact of serialization-deserialization on the returned values. JSR 269 provided a trio of similar exceptions for the situation of encountering a kind of object unknown in an earlier version of the language, such as a JDK 6 era annotation processor coming across a module from JDK 7: However, the original JSR 269 API does not have a common direct superclass to group these related conditions. That deficiency was addressed in JDK 7 build 48 with the addition of javax.lang.model.UnknownEntityException as the direct superclass of these three exceptions (6794071). Retrofitting this change is binary compatible because UnknownEntityException directly extends RuntimeException as did the old exceptions and serialization compatibility is preserved by the existing serialVersionUID fields in the old exceptions. (2009-03-12 12:00:07.0) PermalinkThose interested in following JDK 7 happenings from Sun engineers can track "jdk7" tagged entries on http://blogs.sun.com/main/tags/jdk7. (2009-03-10 11:27:20.0) Permalink Comments [1]The crested butte of Crested Butte Last week I was off attending my first Java Posse Roundup in scenic Crested Butte Colorado, pictured below. There were many good discussions related to JDK 7 and other programming, and non-programming, topics. Unfortunately, there were some difficulties with my flight back. Once again, the plane I was flying on had to be rebooted, but at least this time the passengers didn't need to be reinstalled! I missed my scheduled connection in Denver and caught the next flight to the bay area a few hours later. The wait in Denver was made more pleasant by the airport's free-after-a-short-ad wi-fi and recharging stations for electronic gear. More airports should have those amenities! (2009-03-08 22:15:09.0) PermalinkIn its first week, Project Coin enjoyed a vigorous start with well over a dozen proposals submitted:
Traffic on the the list has been high, with lots of feedback and analysis leading to some revised proposals. A few general comments on the proposals that have been sent in so far to help refine those proposals and improve future proposals before they are sent in. The proposals submitted to Project Coin should already be well thought-through. The goal is to have in short order specifications approaching JLS quality, preferably with a prototype to help validate the design. The feedback on the list should be much closer to finding and illuminating any remaining dark corners of a proposal rather than fleshing out its basic structure. If a proposal does not cite chapter and verse of the JLS for parts of its specification, that is a good indication the proposal is too vague. All affected sections of the JLS should be listed, including binary compatibility and the flow analysis in definite assignment. It is fine if someone posts to the list to solicit help writing a proposal for a given change. Proposal writers should be aware of the size and scope parameters established for the project; for background see: Also, proposal writers should search Sun's bug database for bugs related to the change. The URL for the database is http://bugs.sun.com; Java specification issues are in category Java SE and subcategory specification. Of course the database is also searchable with your favorite search engine restricted to that site. Besides the evaluation field from the bug database, the external comment can often also have valuable insight into and discussion of alternatives to solving the problem or reasons why the problem shouldn't be solved. As has already been happening on the list, authors and advocates of a proposal are responsible for responding to feedback and incorporating changes into any subsequent iterations of the proposal. For now, I think it is adequate to just send the revised proposals to the list. Only if there turns out to be frequent change would a more formal tracking system be warranted. Keeping such discussions on the list is important both to allow easy, centralized tracking of the proposal drafts and also for future language archaeologists who are curious about why a particular decision was made. After a few iterations of feedback and refinements, the specification and compilation strategy should be sufficiently detailed to provide high-confidence that the proposal is practical and can be reduced to practice. For example, I think the initial proposal for the admittedly simple strings in switch change provides adequate detail on these fronts. (2009-03-06 09:00:00.0) Permalink Comments [15]Project Coin: Proposal for Strings in switch Below is a Project Coin language proposal form I wrote for Strings in switch; send any comment to the Project Coin mailing list. PROJECT COIN SMALL LANGUAGE CHANGE PROPOSAL FORM v1.0 AUTHOR(S): Joseph D. Darcy OVERVIEW
MAJOR ADVANTAGE: What makes the proposal a favorable change?
MAJOR BENEFIT: Why is the platform better if the proposal is adopted?
MAJOR DISADVANTAGE: There is always a cost.
ALTERNATIVES: Can the benefits and advantages be had some way without a language change?
EXAMPLES
ADVANCED EXAMPLE: Show advanced usage(s) of the feature.
DETAILS
COMPILATION: How would the feature be compiled to class files? Show how the simple and advanced examples would be compiled. Compilation can be expressed as at least one of a desugaring to existing source constructs and a translation down to bytecode. If a new bytecode is used or the semantics of an existing bytecode are changed, describe those changes, including how they impact verification. Also discuss any new class file attributes that are introduced. Note that there are many downstream tools that consume class files and that they may to be updated to support the proposal!
TESTING: How can the feature be tested?
LIBRARY SUPPORT: Are any supporting libraries needed for the feature?
REFLECTIVE APIS: Do any of the various and sundry reflection APIs need to be updated? This list of reflective APIs includes but is not limited to core reflection (java.lang.Class and java.lang.reflect.*), javax.lang.model.*, the doclet API, and JPDA.
OTHER CHANGES: Do any other parts of the platform need be updated too? Possibilities include but are not limited to JNI, serialization, and output of the javadoc tool.
MIGRATION: Sketch how a code base could be converted, manually or automatically, to use the new feature.
COMPATIBILITY
EXISTING PROGRAMS: How do source and class files of earlier platform versions interact with the feature? Can any new overloadings occur? Can any new overriding occur?
REFERENCES
URL FOR PROTOTYPE (optional): (2009-03-01 10:00:00.0) Permalink Comments [7] The Project Coin OpenJDK page and mailing list are now live. The call for proposal period will run until March 30, 2009. Let the proposing begin! (2009-02-27 15:17:18.0) Permalink Comments [2]FOSDEM 2009: OpenJDK 6 and Project Coin I was pleased to attend and speak at my first FOSDEM conference this year. The classroom setting of the Free Java Developer Room was certainly different than the cavernous session halls of JavaOne! My talks were on OpenJDK 6 and Project Coin: Mark spoke on modularity and overall plans for JDK 7 and Alex spoke on progress towards a universal VM. Another enjoyable aspect of FOSDEM for me was meeting in person a number of people I'd corresponded with over email who had contributed to OpenJDK 6, including Karl Helgason of Gervill fame and Andrew Haley and other IcedTea engineers from Red Hat. (2009-02-13 10:00:00.0) Permalink Comments [5] |
Calendar
RSS Feeds
All /Annotation Processing /General /Java /JavaOne /Numerics /OpenJDK SearchLinks
NavigationReferersToday's Page Hits: 113 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||