CSR :
|
|
Relates :
|
|
Relates :
|
A DESCRIPTION OF THE PROBLEM : Class com.sun.net.httpserver.HttpExchanage has a close() method which should be called when an HttpExchange ends. Therefore, class com.sun.net.httpserver.HttpExchanage should implement AutoCloseable. Expected behavior: Classes which need to be closed can be used with try-with-resources statements because they implement AutoCloseable. Actual behavior: HttpExchange cannot be used with try-with-resources statements because it doesn't implement AutoCloseable.
|