Sun updates Java for geeks

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

NEWS
Sun Microsystems has acceded to developer requests and will make two additions to the Java language, a move it has resisted for years. In a keynote at Sun's JavaOne developer conference on Tuesday, Java creator James Gosling announced that Sun will add assertions and generics to Java because they are the two most popular developer requests. The changes will be available in Version 1.4 of the Java platform. Both changes will result in more reliable Java applications. Assertions lets developers test assumptions they have made about their code before deploying it. Generics, which Gosling called "the geekiest language feature around," defines the parameters of Java containers by their contents. If, for example, there is a jar of olives, Gosling said, generics lower the odds that developers would put walnuts into the jar by mistake. "You can declare a Java class which is parameterized by type, and you can declare a variable which is an instance of that class parameterized in a certain way. A map that maps strings to employees is an example." Generics is controversial and has been widely debated inside and outside of Sun. Gosling said the concept is so complicated that no two developers could agree on exactly how it should be implemented. He and Sun Chief Scientist Bill Joy "got as close to physical violence as we've gotten," he said, because Joy wanted to slip Java for two or three years until Sun figured out generics. However, developers converged on an answer about two years ago, and then Sun waited while the issue wended its way through the Java Community Process. Gosling said reliability is critical to Java because it raises developer productivity, allowing them to "spend less of their lives fixing broken applications." Developers have requested many other changes to the Java language. Gosling created a Web site a couple of months ago with a laundry list of all the changes and said he considered creating "a kitchen sink language and whacking it into a prototype compiler." But he will not commit to other changes because Java must be kept simple, particularly considering the variety of developers using it. Sun estimates there are 2.5 million Java developers worldwide. Gosling shared the stake with Nokia President Pekka Ala-Pietila, who committed to shipping 50 million Java phones by the end of 2002 and over 100 million by the end of 2003. Ala-Pietila announced an entire product line based on Java, with some phones running Personal Java on top of the Symbian operating system and others using embedded Java. Borland will provide tools to create applications for the phones, and Motorola and Nextel announced on Monday that they are working on enabling phones to wirelessly download embedded Java applications. However, Ala-Pietila said that changes to Sun's Java Community Process are critical for Java's future health. Sun created the Java Community Process a few years ago as a way to let developers participate in Java's evolution while retaining control of the technology, but IBM and others have complained repeatedly that the JCP is not open enough. Ala-Pietila wants wide rights to implement code created under the process and a wide distribution of intellectual property. He declined to elaborate further. In a press conference following the keynote, Sun VP Pat Sueltz, who's in charge of Sun's software strategy, said Sun will make the changes to the JCP and continue to listen and learn from its developer community. On Monday Microsoft President Steve Ballmer called for a closer relationship with Nokia while on a trip to Finland. Ala-Pietila did not address the Microsoft issue. But Gosling said Microsoft had "terrorized the industry" and created "a conspiracy of silence" of vendors that Microsoft had abused. Gosling said the U.S. Department of Justice's investigation of Microsoft has broken that conspiracy and allowed "the right social things to happen." For complete business coverage, see ZDNet UK's Enterprise Channel. Have your say instantly, and see what others have said. Click on the TalkBack button and go to the ZDNet news forum. Let the editors know what you think in the Mailroom. And read other letters.

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

tinycg

Don't forget to check out apps like GoodReader or SlideShark either, they're indispensible for people on the go in presentation situations. Best...

2 hours ago by tinycg on Four top iPad apps for people on the move
TerryRK

Well it seems there is something a number of us agree on. Why is the Ubuntu Unity launcher so ugly? I thought perhaps it was something to do with...

7 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Freebies202

Duplicate comments are not made intentionally. Its very good to know that now you are keeping check on this problem because sometimes a commenter...

16 hours ago by Freebies202 on Microsoft fixes blog comments, speeds up blogs with open source
kevinmchapman

"the very significant number of users" and "many (most) of us" - you have no evidence for these statements. It is a fact that most users are saying...

1 day ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
Marg Menzies Harrison

Another grammar faux pas is the improper use of "you". When sitting down down in a restaurant, for example, I get cringe when the waitress...

1 day ago by Marg Menzies Harrison via Facebook on 10 flagrant grammar mistakes that make you look stupid
zdnetukuser

And NOW, folks, for Canonical's next trick... Kubuntu is late. Here's a pencil. Draw your own conclusions. cf.:...

1 day ago by zdnetukuser on Linux Minterface
Moley

@kevinmchapman. The discussion here reflects the very significant number of users who really do like the traditional menu system and who wish to...

1 day ago by Moley on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

Er, no... It is an efficient means of finding the application/file/setting you need in one place. The icons are a simply a fallback for when you...

1 day ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

Isn't the provision of a text based search an admission by the developers that the mass of icons approach does not work? I don't need to use a...

1 day ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

"Unity and GNOME 3 both abandon the old text-based cascading menus in favour of a graphical icon-driven system." Point truly missed. Both use a...

1 day ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

whs001 - Thank you, I'm glad you liked the article. I absolutely agree with you on your first point. I should perhaps have made it clearer that...

1 day ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Dennis Nilsson

If we allow corporate interest to dictate the way our government circumvents due process against foreign entities then we should accept the same...

1 day ago by Dennis Nilsson via Facebook on ACTA stumbles in Germany
GHar123

I totally dislike pirating of works, I fear that artists will be deterred from creating works if they think that they are going to get ripped off....

1 day ago by GHar123 on ACTA stumbles in Germany
JCB33

How dare film makers, artists or anybody that invests in creativity stop us pirating their works for free. I want to be able to walk into my local...

2 days ago by JCB33 on ACTA stumbles in Germany
Moley

@GrueMaster. I prefer horses for courses rather than one size fits all. I, and I suspect most other computer users, do not really wish to have...

2 days ago by Moley on A tale of two distros: Ubuntu and Linux Mint
greycynic

The product that scares me every time I have to use it is the Office 2007 version of Excel. The first bug that I found was applying the median...

2 days ago by greycynic on Ten flawed products that derail productivity
GrueMaster

Nice review and very informative. One thing I'd like to add (in reply to whs001's 1st question), the main reason to have the same interface from...

2 days ago by GrueMaster on A tale of two distros: Ubuntu and Linux Mint
Frederick Wrigley

I'be been using Mint 12 since the RC came out, and I am far more happy with the Cinnamon, the Mate, and, yes (with extensions), theGnome 3...

2 days ago by Frederick Wrigley via Facebook on A tale of two distros: Ubuntu and Linux Mint
bdantas

Excellent article. One small correction, though--although a fresh installation of Linux Mint 12 will, indeed, provide the user with a version of...

2 days ago by bdantas on A tale of two distros: Ubuntu and Linux Mint
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

2 days ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material