I've just looked into the code of javax.ws.rs.core.MediaType and wondered about throw new RuntimeException("Compiled Code")
, since I've never seen that before. I think is a form of "not implemented", but don't know.
package javax.ws.rs.core;
import java.util.Map;
import javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate;
public class MediaType {
// some variables and constants ...
public static MediaType valueOf(String string) throws IllegalArgumentException {
//compiled code
throw new RuntimeException("Compiled Code");
}
public MediaType(String string, String string1, Map<String, String> map) {
//compiled code
throw new RuntimeException("Compiled Code");
}
public MediaType(String string, String string1) {
//compiled code
throw new RuntimeException("Compiled Code");
}
...
}
What is it all about?