Closed bakyaraj008 closed 5 years ago
I'm not sure if you have customized the NanoHTTPD source above, but I will assume not. I ran into this issue when my import statements were reordered. Due to eager evaluation of imports, the statements import fi.iki.elonen.NanoHTTPD.Response.IStatus;
import fi.iki.elonen.NanoHTTPD.Response.Status;
must come after
import java.io.Closeable;
Making sure that the IStatus
and Status
imports are the last imports will let the compiler resolve the symbols.
See https://bugs.openjdk.java.net/browse/JDK-7101822 for more context
Oh, so it's a JDK bug, alright.
In NanoHTTPD class i have imported "io.closeable" but still i am getting cannot find symbol closeable. Below is my code sample for NanoHTTPD.
public abstract class NanoHTTPD {
}