Changeset 2172


Ignore:
Timestamp:
01/29/07 12:42:40 (13 years ago)
Author:
melissa
Message:

Don't catch Throwable; only set the noPOI flag if ReflectedUniverse initialization fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/OIBReader.java

    r2142 r2172  
    5757      r.exec("import java.util.Iterator"); 
    5858    } 
    59     catch (Throwable exc) { 
     59    catch (ReflectException exc) { 
    6060      noPOI = true; 
    6161    } 
     
    221221    } 
    222222    catch (ReflectException e) { 
    223       noPOI = true; 
    224       return new byte[0]; 
     223      throw new FormatException(e); 
    225224    } 
    226225  } 
     
    241240      false, bytes == 3 ? 1 : bytes, !littleEndian[s], validBits[s]); 
    242241  } 
     242 
     243  /* @see IFormatReader#close(boolean) */ 
     244  /* 
     245  public void close(boolean fileOnly) throws FormatException, IOException { 
     246    if (!fileOnly) close(); 
     247  } 
     248  */ 
    243249 
    244250  /** Closes any open files. */ 
     
    434440      } 
    435441    } 
    436     catch (Throwable t) { 
    437       noPOI = true; 
    438       if (debug) t.printStackTrace(); 
    439       initFile(id); 
     442    catch (ReflectException e) { 
     443      throw new FormatException(e); 
    440444    } 
    441445 
Note: See TracChangeset for help on using the changeset viewer.