[jdom-interest] NoSuchElementException

Elliotte Rusty Harold elharo at metalab.unc.edu
Sun Jun 11 13:11:16 PDT 2000


I recently encountered this error message:

D:\speaking\xmldevcon\jdom\examples>javac WeblogsJDOM.java
WeblogsJDOM.java:55: reference to NoSuchElementException is ambiguous,
both class java.util.NoSuchElementException in java.util and class
org.jdom.NoSuchElementException in org.jdom match
      catch (NoSuchElementException e) {
             ^

Since it will be VERY common to import both java.util.* and org.jdom.*,
I suggest we rename org.jdom.NoSuchElementException to
NoSuchChildElementException, NoSuchChildException, or something similar. 

-- 
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|               Java I/O (O'Reilly & Associates, 1999)               |
|            http://metalab.unc.edu/javafaq/books/javaio/            |
|   http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ | 
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list