exception java.io.IOException is never thrown in body of corresponding try statement是怎么回事??
ComplexV3JspBuilder(String fileName) {
builder = new SAXBuilder();
try {
doc = builder.build(new File(fileName));
Element root = doc.getRootElement();
programName = root.getAttributeValue("id");
} catch (JDOMException e) {
System.err.println("xml is not well-formed.");
e.printStackTrace();
} catch (IOException e) {
System.err.println("IO error");
e.printStackTrace();
}
init();
}
编译的时候第二个catch有错
错误提示:exception java.io.IOException is never thrown in body of corresponding try statement
请问怎么回事