Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by Community: Open JDK

• Adopt a JSR  • Embedded  • GlassFish  
• Global Education and Learning  • Identity Management  • IoT  
• Java Communications  • Java Desktop  • Java Enterprise  
• Java Patterns  • Java Tools  • Java User Groups  
• Java Web Services and XML  • JavaFX  • JCP  
• JDDAC  • Jini  • JXTA  
• Mac Java  • NetBeans  • Open JDK  
• Portlet  • Robotics  • Sun Grid  
• Sun RFID and Sensor  • [no association]  


Open JDK

When the foreach syntax (for(:)) has been introduced in 1.5, a recurring question was why foreach is not able to iterate using an iterator. I think i have a trick to do that using the syntax of the closure : Iterator<String> scanner=new Scanner(System.in); for(String word:() { scanner })   System.out.println(word); Why this code works. The foreach statement...
on Sep 22, 2006
Thanks to everyone that provided suggestions and tips for installing Ubuntu and JDK 5.0. I am happy to say that JDK 5.0 installed easily enough when I followed the rules precisely. If you're going to try this, you'll need to follow the JDK distro instructions for Ubuntu. There were no big glitches during the installation, but I was surprised that I had to put the JDK document zip file in the /tmp...
on Sep 20, 2006
As seen in Neil Gafter's blogs, there are two rival proposals about adding closure to Java language. The first one, named v0.1, introduces a new kind of type, function type in order to express the type of a closure. The second one, named v0.2, enables to use interface as type of closure. The goal of this entry is to show the pro and cons of the two proposals. Let me take an example...
on Sep 20, 2006
A new version of the closure proposal has been post at the end of this week by Neal Gafter and proposes in section 3 to tag parameter with a special keyword to differenciate between synchonous and asychronous closure. For me this section contains two flaws, the first one is that the keyword used is synchronized, the second one is to not recognize that such feature can be usefull in...
on Sep 17, 2006
Hey Everybody, thank you for the great comments and discussion on my previous posting. I have one aspect to the question I'd like to raise. Like I said, we have an internal bug system. The current Bug Parade is derived from that internal bug system. The new bug system would also need to interface with the internal bug system. It seems like it wouldn't work very well to have two independant...
on Sep 16, 2006
In my last post, i've described how to use jrunscript to create a build script. As olivier wrote in the comments, the build process is usually a dependency graph and jrunscript doesn't do that by default. But javascript is far more powerful than XML thus it's easy to create commands that enable to declare dependencies betweeen functions as Ant or make does. I propose the following...
on Sep 14, 2006
I did a little blogging on JPRT at http://blogs.sun.com/kto/entry/jprt_sun_hardware_is_so but that was mostly to talk about the COOL rack of Sun hardware that I used. Now I want to talk a little more about why we need something like JPRT, and what it does for us. I've been working on this JPRT project for quite some time now, so I've kind of lost touch with the real world lately. Ronald...
on Sep 13, 2006
The JDK6 provides a new command jrunscript that enables to execute script shell in Java environment. By default, jrunscript uses javascript as scripting language and provides some useful default functions like cp, cd, cat, etc. These global functions seem designed to ease the creation of build scripts, so i propose to show the basics of how to write such scripts. First, the script...
on Sep 13, 2006
Hi all, as we're getting ready to start launching the open sourced JDK project we have a number of questions that are being pondered. The question at the top of my mind today is the bug tracking system. I would like to open up some discussion with you people as to what you find useful in a public bug tracking system. One of the things I found is this book: Producing Open Source Software which...
on Sep 12, 2006
I'm on the front page of java.sun.com with an article derived from my blog entries on MXBeans. Janice Heiss helped me reformat these entries (two blog entries plus an extended blog comment) into the article you see today.
on Sep 8, 2006
In a previous entry, i've written about declaring a method that doesn't return normally using null, the type of null, as return type. A comment from Neal Gafter make me realize that i was wrong but i now think the closure spec is wrong too. What the closure proposal says is that a function that doesn't return normally should use null. Not the converse, so i agree with neal that a...
on Sep 8, 2006
The closure proposal doesn't define how closure and collections will work together. It's reasonable to say that this API will exist because closure in order to be accepted by the community must be well integrated with collections. After all, java.util is the second more used package after java.lang. But that is not so easy. In a dream world, collection should have method like...
on Sep 8, 2006
I've written more than a few blog entries pondering the strategic goodness possible from supporting multiple languages on the Java VM. Just this morning I was saying to myself, who cares what language is at the top of the stack so long as it's on the Java VM! And this afternoon I learn that we're moving to support JRuby development by hiring the JRuby core developers. The JRuby guys get hired...
on Sep 7, 2006
Wow, we begin to have a good view of the language enhancements planed for Dolphin JDK7. XML Syntax : blog entry by Mark Reinhold Super-packages : blog entry by Gilad Bracha Closure : a blog entry by Peter Ahé Annotations to detect software failure : JSR 305 submitted by Bill Pugh. Like any geek, i'm not sure to be able to wait 2 more years before playing with these...
on Sep 6, 2006
I'm seating in my garden, my laptop on my knees. i'm hearing the noise of some mowers in the background, my kid is sleeping, my wife is trying to resolve a sudoku, and i'm thinking about closure, again ! Why doesn't enable to define a closure using a reference to a method ? public class HelloClosure {   public void sayHello(String name) {     System.out....
on Sep 2, 2006
JDK7 and JDK6 source snapshots under the JRL license are now available through subversion repository. jdk.researcher or jdk.contributor role for jdk project is required to access the repository. The repository is located here - https://jdk-jrl-sources.dev.java.net/svn/jdk-jrl-sources/ This is yet another way to access JDK sources. It has a number of advantages over the jar files we provide for...
on Sep 1, 2006
In forum (fora) and blogs, i have often seen that closures are compared to anonymous classes in order to reject the proposed syntax of closure. In this entry, i try to show up why the closure syntax is such as it is by explaining the differences with the anonymous class syntax. Let me introduce an example that sort a list of integers in reverse order. There are two codes, one written...
on Aug 31, 2006
Yes, this is another entry about closure :) In the closure proposal, the section "Closure conversion" describes how to use a closure instead of an anonymous class. The rules are : the implemented interface must have one method the closure signature must be a subtype of the method signature So let see if these rules are sufficient to use closures in order to implement AWT/Swing...
on Aug 29, 2006
The other night I was in the grocery store, wearing one of my jackets that sports the Java-coffee-cup logo. The grocery bagger, all of 16 years old, suddenly looked at my jacket and started stammering a question along the lines "is that the thing in my phone"? Took me a minute to connect what he was asking, and then I said "yes" and explained Java is a programming language and one place it...
on Aug 28, 2006
The latest JDK 6 build machine setup and build instructions are now available at: http://download.java.net/jdk6/docs/build/README-builds.html. Do NOT go to http://download.java.net/README-JRL.html, those are old pages, and I'm trying to get them updated or removed. We have re-structured the build instructions and am trying to add in more information and details on the various build...
on Aug 28, 2006