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

In Concerns about GPL-licensed Java goes into some well known issues with copying code from one project to another. The first concern, 1) When code is GPL, the license tends to infect things that aren’t intended to be GPL. is indeed why we chose the Classpath exception. It's so that the GPL-ness of the runtime classes do not pass along to programs that subclass the runtime classes. Though an...
on Nov 14, 2006
Defining an equals(Object) method in a public class is not always straightforward. One reason it might not be is that the answer to the question "are these objects equal?" might be "who's asking?". In a very interesting comment on my previous blog entry, rullrich suggests that the real problem is with MBeanInfo.equals. I'm inclined to disagree, but the issue...
on Nov 13, 2006
After a long debate it's finally happened, I've open sourced my dog. It just seemed like the right time, and all these concerns about people sticking forks in my dog, or taking it and actually teaching it new tricks, what was I thinking? So here she is: Oh by the way, here are a list of issues I need fixed: <pre>9103456 Keeps jumping up on people and licking them9104567 Occasionally...
on Nov 13, 2006
Okay, we're finally public with what we're doing. Maybe I'll find time to resume posting on my blog. Especially as we have some interesting Quality Team plans cooking in the background. Anyway I'm reading through the slashdot thread and it seems worthy to post a few responses to what I see there. And it's worth saying up front -- I am not a lawyer, so for the real legalese of various questions...
on Nov 13, 2006
An inadvertent change in JDK 6 means that MBean attributes and operations no longer appear in the order they were in a Standard MBean interface. I wanted to fix this, but now I'm not so sure. Here's the background. Suppose you have a Standard MBean with this interface: public interface PlanetMBean {    public int getMercury();    public String...
on Nov 10, 2006
I don't understand why array creation of array of parametrized type is forbidden by the JLS. Let me take an example :   public class Holder&lt;E&gt; {    public void set(E element) {      this.element=element;    }    public E get() {      return element;    } ...
on Nov 9, 2006
The JMX API includes the possibility to create "Dynamic MBeans", whose management interface is determined at run time. When might that be useful? Here's an example. In the JMX forum on the Sun Developer Network, Athar asks how to load a properties file in a dynamic MBean. I think that's an excellent question, because it's exactly the example I usually use for "...
on Nov 8, 2006
Neal Gafter post a blog entry about adding reified generics to Java. I likethat proposal mostly because developpers will have the choice betweeen reified or not reified generics. About the syntax, i think it's better to use an anotation than to re-use the keyword class. Annotating a type variable is not currently allowed but it seems that the upcoming JSR 308 will allow that. class...
on Nov 6, 2006
Last week, an early draft of Java Module System (JSR277) was published. To sum up, this draft defines : the concept of exportable module, which is closed to OSGi bundle or eclipse plugin. the way modules are packaged, as super jar named Java Archive Module (or jam). and how modules are store in a local repository. One short paragraph at the end of the section 12 of the...
on Oct 19, 2006
With a colleague, we discuss about the fact that function type can or not obfuscate Java code and he advocate the fact that a code in Java is always readable if you have an IDE that can auto-format the code. The following example doesn't answer to the question about function type but shows that it is always possible to write an obfuscated code even in Java. This example is extracted...
on Oct 17, 2006
I just had to write this in the JAX-WS RI: try {    return ir.getConstructor(Class.class).newInstance(clazz);} catch (InstantiationException e) {    throw new WebServiceException(ServerMessages.FAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(        ir.getName(),a.annotationType(),clazz.getName()));} catch (IllegalAccessException e) {...
on Oct 16, 2006
Saw Is Sun's Bug Fixing Policy a Failure or Success? which refers to Horrible JComboBox regression in b99 with WindowsXP L&F ... There's a whole lot to this discussion to consider. What I want to talk about is the difficulty of finding bugs in rendering graphics (like a GUI). I've written on this topic before: Automated visual verification is hard This regression is an example of the...
on Oct 13, 2006
Recently my friend Ed Bennett died. I'd lost track of him, and it was interesting that I learned about his death because of a comment left for me on this blog. He and I had in the 1980's led an open source project which I've written about before. Over the weekend a memorial service was held for him, and I learned something which is intriguing me. Ed was quadrapalegic due to a skiing accident...
on Oct 9, 2006
When you want to add features to a language without breaking backward compatibility, a widespread idea that you can't add new keywords. That is why we can currently see weird proposal in Java space that try to reuse old keywords to express new kind of abstraction, by example, synchronized (closure v0.2 section 3) or (Neal Gafter blog about for). Why introducing a new keyword breaks...
on Oct 9, 2006
Just thought I'd touch on a subject that some people forget about when having to build products that will run on many different machines. Building and testing on a single machine is easy, building bits that need to run on dozens of different machines is the hard part. Test machines and Build machines are different. Ideally you WANT to test on any and all machines you can get your hands on, but...
on Oct 8, 2006
Neal proposes to use for to tag methods that take a synchronous closure as parameter and to call this new kind of method. It's better than to use synchronized as proposed before but (there is always a but :) i see two drawbacks. First, for is used to tag the whole method and not one of its parameter so there is no way to define a method that takes a synchronous closure and an...
on Oct 4, 2006
Mark Reinhold: Source-code management for an open JDK, Kelly O'Hair: Teamware, Mercurial, and SCCS revs that go bump in the night and Martin Englund: Migrating from TeamWare to a new SCM have posted a series of blogs (linked above) talking about the source code managment thinking as we move to the open JDK project. I don't have much to add to what they've said. I just wanted to give them a...
on Sep 27, 2006
As seen in Mark's recent blog on the JDK and Source Code Management (SCM) solutions at http://blogs.sun.com/mr/entry/openjdk_scm, you can see that we are finally looking at converting to a new SCM. Inside Sun the historic and most common SCM used has been Teamware. The Sun Workshop product had delivered Teamware with it's compilers and tools for many releases, but the newer Sun Studio...
on Sep 27, 2006
This is the title of an excellent new blog entry from my teammate Luis-Miguel Alventosa. It's an exhaustive description of the principal options that are open to you to configure the security of RMI connectors for JMX agents. http://blogs.sun.com/lmalventosa/entry/jmx_authentication_authorization
on Sep 27, 2006
Anybody interested in the JDK 7 planning should go to Danny Coward's recent blog posting: Channeling Java SE 7. It's a good overview of the planning, of the planning process, some of the high level themes and directions that we intend to take with the next major release of the JDK. Doing the planning for a Java release is a very complicated process. As Danny says, it involves input from...
on Sep 25, 2006