Should we build a superset of Java?
Kevin A. Burton
burton@relativity.yi.org
Wed Apr 4 11:38:00 GMT 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It has bothered me for a long time that SUN hasn't opened up Java to a peer
review process (no... the JCP does not count). I have a number of small things
I would like to see added to Java and GCJ seems like a great way to standardize.
For example. It would be nice if you could have nested Exceptions. IE one
Exception thrown because of another Exception. This comes in really handy
within factories and networked communications.
Example:
pubic void someDomain() {
try {
//do something not really relevant to this method
} catch ( SomeOtherDomainsException sode ) {
throw new SomeDomainException( sode );
}
}
Then when you called printStackTrace on SomeDomainException you would get:
SomeDomainException: Exception thrown because of exception below SomeOtherDomainException
SomeOtherDomainException: Some other stuff (IE the root cause of the Exception)
Then you would end up with nested Exceptions. Java currently doesn't support
this (except if you build it). I think it is a logical extension but there is
no way I am going to go through the JCP to get this added.
Has anyone defined a way GCJ is going to add language extensions this in the
future? Remember we don't have a standards committee :)
- --
Kevin A. Burton ( burton@apache.org, burton@openprivacy.org, burtonator@acm.org )
Cell: 408-910-6145 URL: http://relativity.yi.org ICQ: 73488596
Repeat after me: Freedom and personal responsibility good, serfdom and
tyrannical control bad.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt
iD8DBQE6y0eaAwM6xb2dfE0RAjPMAJ4gRdcCqYYbZAWS4U3geNC2o30mswCeJBdi
FI0M2Aq3FQGA39gf5VR0o4Q=
=ml/8
-----END PGP SIGNATURE-----
More information about the Java
mailing list