I have the following code: final Acme.Serve.Serve srv = new Acme.Serve.Serve() { public void setMappingTable(PathTreeDictionary mappingtable) { super.setMappingTable(mappingtable); } }; Acme.Serve.Serve.PathTreeDictionary aliases = new Acme.Serve.Serve.PathTreeDictionary(); aliases.put("/", new java.io.File("C:\\temp")); ((Server$1)srv).setMappingTable(aliases); The reason of introduction of anonymous class, because method setMappingTable in base class is protected. Now I need to cast access to newly public method, because otherwise compiler will issue compilation error. ...