throw with String

Ralf Ebert ralf at ralfebert.de
Wed Sep 15 05:33:10 PDT 2010


I realize that I am late here, but wanted to propose another little
small language change anyway:

---
throw "error"

should be a shortcut to

throw new RuntimeException("error")
---

I recently added this to the Eclipse Java compiler (for educational
purposes only), it's just a tiny change, not even requiring a grammar
change:
http://www.ralfebert.de/blog/java_hacking/throw_string/

Greetings,

Ralf




More information about the coin-dev mailing list