Code Review request: 8047186: throws InvocationTargetException instead of original runtime exceptions

Artem Smotrakov artem.smotrakov at
Wed Jun 18 12:53:15 UTC 2014


Please review this fix for 8u:

getOption() and setOption() methods of class throw 
InvocationTargetException instead of actual runtime exceptions like 
NullPointerException and AccessControlException. I think it is better to 
throw an original runtime exception to reduce and simplify stack traces.

jdk/net/Sockets/ should have caught the issue, but currently it 
fails due to That's 
why I didn't added separate test for this bug.


More information about the net-dev mailing list