ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  10 Reasons We Need Java 3.0
Subject:   Benefits
Date:   2003-08-27 07:37:30
From:   anonymous2
Much of what has been suggested doesn't provide substantive benefits. Prattling on about 'ln' rather than 'log', for instance, doesn't make anyone more productive. Discarding deprecated API doesn't provide benefits either: there is no advantage whatsoever to making a bunch of stuff that most folks no longer use unavailable, it just gives Java opponents something to beat Java with.


Some aspects of Java that work perfectly well are misconstrued by some contributors to this list. Having every Object synchronizable is not a bad thing. For example, if you need to synchronize access to a particular ArrayList, it makes a lot of sense to make _it_ the Object we synchonize on. Anyone who doesn't like this doen't need to use it: use a global object for instance...yes, Java has global objects, they are public static fields:


public class SyncKeeper
{
public static Object s_objSync = new Object();
}


// ...


synchronize (SyncKeeper.s_objSync)
{
// ...
}


Or, for the loonies:


public class SyncKeeper
{
private static Object s_objSync = new Object
();


public static Object sync()
{
return s_objSync;
}
}


// ...


synchronize (SyncKeeper.sync())
{
// ...
}



What is important:


- class path, class path, class path: as someone else pointed out, a system-wide registry would be helpful. Generally, the class path issue is thorny but with directed effort, e.g. a JSR, a good solution could be found (anyone who thinks that the class path is not a problem, hasn't done much Java development).


- make Java more accessible by providing 'cushioned environments' for development. Customers that use my software tool find the mechanics of Java difficult so in version 2 I moved the entire tool to Eclipse and I take care of issues such as the class path by calling into the Eclipse API in the background, result: the tool is much easier to use.


- Don't waste time with trivia.