This content has been marked as final. Show 1 reply
The presentation is not very old - only 2006. The concerns are still true as the Java language and the RTSJ have not changed - neither Java or the RTSJ are compliant with DoD 178B. As the presentation indicates a new JSR (now known as JSR-302) was put together to define "safety-crtiical Java" which is a subset of Java and the RTSJ. There are different levels in 302 and depending on the level different language/runtime/API features are disallowed. JSR-302 is still under development.
Re the comment about "named parameters" - Java doesn't have them and is not likely to ever have them. They prevent certain classes of programming error from arising eg: method declared as foo(int x, int y) and is accidentally invoked as foo(my_y, my_x) thus passing the parameters in the wrong order. Named parameters require the call to be made as foo(x=my_x, y=my_y) and so the order is irrelevant. It's hardly foolproof though, you can still do foo(x=a, y=b) when you should have done foo(x=b, y=a).
Edited to add: Having just read that blog entry I don't think he's talking about the same kind of "named parameters" - at least I couldn't recognize them from the blog.
Check out JSR-302 via the jcp.org website for more info.
David Holmes (JSR-282 EG Member)
Edited by: davidholmes on Apr 9, 2008 10:42 PM