4 ms·
You're lucky Java is checked at compile time. Ruby would eat that "no such method dipose" and silently leak x.
by JulianMorrison 16y ago
You're lucky Java is checked at compile time. Ruby would eat that "no such method dipose" and silently leak x.
- CodeMage 16y agoYou're lucky Java is checked at compile time. Not lucky enough, because x.dispose() could throw an unchecked exception.