[jdom-interest] Bug?

Jeff Rancier jeff.rancier at softechnics.com
Mon Jun 4 08:53:59 PDT 2001


Two issues:

(1) In the jdom-interest archives, the link to *download entire archive*
appears to do nothing.

(2) I have some code which calls the the the DomBuilder.build method, as
follows:


        try
        {
            DOMBuilder builder = new DOMBuilder();
            Document doc = builder.buildxmlConfigFile );
        }
        catch ( JDOMException e )
        {
            if ( e.getRootCause() != null )
            {
                e.getRootCause().printStackTrace();
            }
            e.printStackTrace();
        }
        catch ( FileNotFoundException fnfe )
        {
            Toolkit.getDefaultToolkit().beep();
            lg.setStatus( "File " + lg.fileName.getName() + " not found.");
        }

But this will not compile.  I get the following:

LookupGeneratorConfig.java:101: exception java.io.FileNotFoundException is
never thrown in body of corresponding try statement
        catch ( FileNotFoundException fnfe )
        ^

I would have expected the .build method to throw the exception.



Thanks.

Jeff Rancier
Sr. Software Engineer
Softechnics, Inc.
7063 Interstate Island Rd.
Syracuse, NY  13209
Tel (315) 706-1111
Fax (315) 706-9999
mailto:jeff.rancier at softechnics.com
http://www.softechnics.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20010604/14220734/attachment.htm


More information about the jdom-interest mailing list