Application.getHostServices() javadoc doesn't indicate what is the expected behavior of this method when the app is running standalone or in web start. Will it return null or throw an exception.
Comments
References to applets were removed in JDK-8199357. Closing this as a duplicate of that.
27-08-2021
You're right, this is applicable to all modes. However this is not clear at a first glance. The words "Host" and "enclosing web page" give strong feeling of this being applicable to applet mode only. Probably adding words "when running in applet mode", "when running in standalone and web start" or "applicable to standalone, web start or applet modes" could make this more clear. Thank you!
14-05-2012
Not sure this is even an issue. Unless a method states that it is specific to a particular mode of execution the presumption is that it will work in all modes, which is the case here. I'm curious as to why you thought it only applied in browser mode?