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

I need to add this to the JDK build documentation, but it may be helpful to have it posted here for some people. Building the JDK on Windows can be difficult at times, so if it hasn't been mentioned before, here are a few clues: When using MKS, make sure that the PATH setting has the ${ROOTDIR}/mksnt and ${ROOTDIR}/bin directories BEFORE the system paths. Ideally they should be the first...
on Jan 25, 2007
This entry is the second draft of my property proposal, i have tried to gather all the ideas proposed since my first post about properties. Why do we need a property syntax in Java ? If you have not followed the different blogs, i recommend you to first read properties in Java by Richard Blair and Properties are design features by Cay Horstmann. Declare a property There is three kind of...
on Jan 23, 2007
I've put database queries right there in my GUI event handlers. I'm ashamed, very ashamed. I've seen a lot of code from others too, and I'm not alone in this mishandling of lengthy IO bound tasks. People sometimes actually perform web GET and POST operations from the EDT too. No kidding. You might even be involved, but I don't expect you to admit it. You know what I'm talking about, right? I'm...
on Jan 19, 2007
Just a plug (and additional reference) on my December 2006 article on JVM TI at http://java.sun.com/developer/technicalArticles/J2SE/jvm_ti. I really had not expected this article to be very popular, but I was assuming that only people writing JVM TI agents would be interested. It appears there is quite a bit of general curiosity on VM agents. Of course the Java Lobby and Sun System News...
on Jan 17, 2007
My colleague Nick Stephen has written an excellent and detailed article about Virtual MBeans. This is one of the features we are looking at adding in JSR 255. Nick shows why the feature is interesting, and how you can implement it today using the MBeanServerBuilder hook from the JMX API.
on Jan 17, 2007
The Kitchen Sink Language (or ksl) is open here : ksl.dev.java.net, so i hope that the next version of my prototype will be the ksl trunk. Before trying to commit compiler patches that introduce local variable type inference or properties to the ksl trunk, i think i will write a small patch that enable the use of local keywords. Local keywords What is a local keyword ? A local...
on Jan 15, 2007
Since my last post, Cay Horstmann has recalled that properties are intended for tools and Hans Muller bid up by saying that property syntax is useless without a way to define bound properties. Interceptors and bound properties What Hans want is some kind of interceptor. An interceptor is an object or a method that can trap access to a property. In Java, these objects are...
on Jan 11, 2007
In my last entry, I mentioned that I had reimplemented the RMI registry portably, before discovering that there was a much simpler solution to the security problem I was addressing. Here's the reimplementation for what it's worth. It allows you to go further than the socket factory hack. And if you ever need to understand gory details of the RMI protocol, this...
on Jan 11, 2007
Among the questions about my property proposal and its implementation. One can be answered easily. Why don't provide property change support ? Because there are several ways to implement a property change support depending on what you want. I've try to categorize them, conbinations are possible: Listener and event can be at least the following couple:...
on Jan 8, 2007
Happy new year everyone. Since my last post, i've done some homeworks :), and i'm please to present you a new version of the prototype java compiler which includes property support. First, why properties ?, we have already fields and any IDE have a menu item that can generate getters and setters, so why do, we need properties ? Why do we write getter and setter ? The...
on Jan 5, 2007
I haven't blogged for a while, but I have plausible deniability. We just got twins. Today, I discovered the JavaScript console in JDK6. From a command shell, run jrunscript (assuming, of course, that you have $JAVA_HOME/bin on your path). You get a JavaScript interpreter that lets you script Java classes. For example, try this little program: importPackage(Packages.javax....
on Jan 3, 2007
Update for 1/23/2007, just a very short note on windows. The findbugs target needs to add vmlauncher="false", so the line: <exec executable="findbugs" failonerror="true"> changes to <exec executable="findbugs" failonerror="true" vmlauncher="false"> It's not exactly clear why this is necessary, but this allows the findbugs target to work on windows, and also works...
on Jan 3, 2007
It is suggested that the preferrred way of creating the information for a Java package, such that the javadoc tool recognizes it as such, while creating the javadoc documentation. I decided to take this advice and immediately landed into problem of inconsistency with it. I could not create this file as a Java source file, using the NetBeans IDE because it is not a proper java class name! So...
on Dec 31, 2006
If you've had occasion to use the RMI registry seriously, you may have encountered some of its shortcomings. Chief of these is that anybody on the local machine can modify the registry. There are only a few things you can do about that, of which the craziest is to reimplement enough of RMI to code your own compatible version of the registry. I did that, and write...
on Dec 29, 2006
We have been requested to use static imports sparingly. I like that advice. Use your judgment to actually use this support. But frankly, articles, presentations I have seen use the stdout, the "out" field of java.lang.System as imported statically. But, the following program does not compile: class Format { public static void main(final String[] args) { out.format("Hello, World!"); } }...
on Dec 23, 2006
A multihomed computer is one that has more than one network interface. Problems arise when you export an RMI object from such a computer. Here's why, and some ways you can work around the problem. A typical example of a multihomed computer is a laptop with both Ethernet and WiFi interfaces. If you look closely at such a computer, you'll...
on Dec 22, 2006
I'm writing this in what I used to think was the world's nastiest airport, where I have a five-hour stopover. I'm somewhat revising my opinion of the airport because I discovered a "Quiet Seating Area" with real seats and real quiet. A bit like a business-class lounge but for the plebs. So I'm sitting there typing this, with my laptop on a table and the...
on Dec 18, 2006
Since my last post, i've played with javac enought to be able to provide a patch that enables to let the compiler infers the type of local variables. Life is a matter of choices If you have already read the last Peter Ahé's blog entry you know that, at least, two proposed syntaxes compete. The first one suggested by James Gosling and named 'Algol' in the prototype use...
on Dec 17, 2006
JDK6 Build Cheat Sheet Just thought I'd list a few ways that the JDK can be built. These apply to JDK6 and JDK7, JDK5 building is a little different but has some of the same settings. The gnumake used here is the GNU make 3.78.1 or newer. On Solaris systems with the Companion CD installed, it can usually be found with the name gmake in /usr/sfw/bin/ or /opt/sfw/bin/. On Linux just use...
on Dec 15, 2006
I have just listened to Laurie Tolson talk about OpenJDK and now Mark Reinhold is talking about JDK 6. This is the official announcement of JDK 6, here in London. Since this morning, you can download the final version of the new version of the Java Platform. Interesting times we are right now. In the last few weeks, we had the announcement of NetBeans 5.5, then Sun announced OpenJDK and now JDK 6...
on Dec 11, 2006