Just thought I'd share it, if only to have a laugh at the old Sun engineers (check the comments of the source snippets posted). Maybe not news to some people here, its pretty well known that JavaSound isn't the best API in the package.

Yeah I wasn't clear enough at all - I more refer to that comment actually being in open source code Oops!

The actual fact that a comment is still there in stead of a fix is indeed sad, not funny.

I agree with you but will Oracle ever fix this bug?

I'm fairly sure this class is actually gone from OpenJDK and Java 7. Which is not to say that the DirectAudioDevice lines don't also seem to swallow some InterruptedExceptions. Not great practice, but then I don't agree with the OP's (well OP's OP's!) decision to use the interrupted flag for this purpose. Having a private flag that your code alone has access to is the way to approach this (and not the workaround as it's described).

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org