JSR 666: Solving Java's Problems

Tags:

You may be interested in some new developments in JSR-666 (the JSR from hell). This is an excellent JSR containing many important enhancements for Java. Maybe we can even get it into Java 7.

This JSR contains the following list of recommendations:

Many props to the JSR 666 expert group: Alan Green, Charles Miller, Mike Cannon-Brookes, and AJ Fitzpatrick.

0
Average: 2.4 (7 votes)

Alex Miller lives in St. Louis. He writes code for a living and currently work for Terracotta Tech on the Terracotta open-source Java clustering product. Prior to Terracotta he worked at BEA Systems and was Chief Architect at MetaMatrix. His main language for the last decade has been Java, although Alex have been paid to program in several languages over the years (C++, Python, Pascal, etc). Alex is a DZone MVB and is not an employee of DZone and has posted 43 posts at DZone. You can read more from them at their website.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

cowwoc replied on Wed, 2008/02/13 - 5:22pm

I was about to post a comment telling you off before I clued in ;)

 

All I've got to say is that it's a good thing that Java doesn't allow identifiers to be declared using Unicode characters. I'll spare you the headache of debugging code with Russian or Japanese comments. I'd hate for the actual code to use these characters :)

Bruno Laturner replied on Wed, 2008/02/13 - 10:25pm in response to: cowwoc

Actually...

Letters and digits may be drawn from the entire Unicode character set, which supports most writing scripts in use in the world today, including the large sets for Chinese, Japanese, and Korean. This allows programmers to use identifiers in their programs that are written in their native languages.

 

Loren Kratzke replied on Thu, 2008/02/14 - 12:46am

Geeze, I thought this was serious for a minute. Had me worried.

Rick Ross replied on Thu, 2008/02/14 - 8:02am

Brilliant!

David Sills replied on Sat, 2008/02/16 - 2:49pm

Loved the SchrödingerException! although I did think it might be better defined as: This exception can exist as either till a point where the exception is caught, at which time the thread running the handler is found to be either dead or alive.

Alexander Beloturkin replied on Sat, 2008/02/16 - 4:27pm

>> Eliminate NullPointerExceptions. Remove null and require that all variables have a valid value.

I don't think that this is a good idea. Null is very important.

Artur Biesiadowski replied on Sat, 2008/02/16 - 8:21pm in response to: amigooo

Naaah.

For strings iuse "" instead of null. For primite wrappers, null is just messing around with autoboxing - and double has NaN which can be very well used to represent tricky values. When you have Person class, instead of using null to indicate that Cat has no owner, you can have special marker instances like GENERIC_GRAVEYARD_OLD_LADY to indicate it is fed by unknown person, or FURRY_GRIM_REAPER to indicate it is soon going to die from not being fed.



Obviously removing null won't happen anytime soon, because Java 7 is sponsored by letter N.

Alexander Beloturkin replied on Sun, 2008/02/17 - 4:15am in response to: abies

"" and null is not the same. This is completly different things. About the null marker, you right, this is one the possible solution, but if for every null in  program we start to use some kind of markers, it can make our code unmaintainable. And in reality we will have many problems instead of NPE.

Any way I agree with you that this is not happen in nearest future. 

Artur Biesiadowski replied on Sun, 2008/02/17 - 6:21am in response to: amigooo

I thought that I'm obvious enough, but it seems not.

Alexander, this entire thread is a satire. None of the posts above, including mine, are serious. There are some subtle hints indicating it, including "Geeze, I thought this was serious for a minute" from Loren, but it is probably time to state it yet more clearly. 

Alexander Beloturkin replied on Sun, 2008/02/17 - 7:14am in response to: abies

Yes, I understand this from first post.

 

shinger replied on Tue, 2009/04/28 - 3:27am

This is really a great stuff to have.I will be sharing in radioblende.It really solved my problems.Thanks for sharing.

iilei replied on Wed, 2009/05/20 - 2:02am

These are really need tools of the java script.I really thank for the post.Since I was searching for this post since from 3months.really had a good sharing.Russian Trains

inak replied on Fri, 2009/05/22 - 9:35am

I have many problems on Java.I was a new learner of the Java script.Here noted that Java tools are been provided.What kind of tools actually.I need to know that.Thanks for sharing.Car Accident Compensation Claims

kinds33 replied on Fri, 2009/06/05 - 1:11am

Good provision.This is completely different things. About the null marker, you right, this is one the possible solution, but if for every null in program we start to use some kind of markers, it can make our code unmaintainable.Thanks for sharing. Display Stands Vancouver

imds replied on Fri, 2009/06/05 - 9:24am

This is what we are working out for.I really needed this info.This helps me a lot in my designing.Thanks for sharing.

wine clubs

 

imds replied on Fri, 2009/06/05 - 9:26am

It is a good sharing I had.Really needed this tools to implement in making progress over it.I really thank this post.Thanks, dating services

imds replied on Fri, 2009/06/05 - 9:28am

I was a new learner of the Java script.Here noted that Java tools are been provided in the free music ways for easy understanding..What kind of tools actually.I need to know that.It can make our code unmaintainable. And in reality we will have many problems instead of NPE.

mimd replied on Wed, 2009/06/10 - 1:21am

These are really need for me.And had very good tools of the Java.Since I am in a learning stage this could help me better.good informative post. regards, Toronto hotels

mijo77 replied on Fri, 2009/06/12 - 3:11am

I really liked this exception can exist as either till a point where the exception is caught, at which time it collapses to one or the other. Regards, tiredness

mijo77 replied on Fri, 2009/06/12 - 3:14am

Clearly it is an exception for dealing with the case where both Illegal Argument Exception. Regards, End tiredness program

scater replied on Thu, 2009/06/18 - 6:29am

I really need this tools..Skin care .feels This exception can exist as either till a point where the exception is caught, at which time the thread running the handler is found to be either dead or alive.

scater replied on Thu, 2009/06/18 - 8:58am

ITS good sharing...I heard about this..but is it solves all java problems really....can u give me the complete details...... regards, English to Arabic Translation

yhuji replied on Sat, 2009/06/20 - 4:43am

I was a new learner of the Java script.Here noted that Java tools are been provided.What kind of tools actually. Regards, online bingo bonuses

vanuji replied on Fri, 2009/07/10 - 12:16am

Till now iam haven't faced this error..in future if i get this i will verify at kit tatuaggi..any how thanks for the share. Regards,

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.