DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27929>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27929

[PATCH] Opening XLS file with drop down list throws ArrayIndexOutofBoundsException





------- Additional Comments From [EMAIL PROTECTED]  2004-07-08 19:27 -------
Stuff like this is extremely ugly on more than one level (copy'n'paste from org.
apache.poi.hssf.record.RecordFactory.createRecord):
--------8<---------------------------------------------------
   catch (Exception introspectionException)
   {
      introspectionException.printStackTrace();
      throw new RecordFormatException("...");
   }
-------->8---------------------------------------------------

Instead you should do it like this:
--------8<---------------------------------------------------
   catch (Exception introspectionException)
   {
      RecordFormatException rfe = new RecordFormatException("...");
      rfe.initCause(introspectionException);
      throw rfe;
   }
-------->8---------------------------------------------------

Or even better, make a new constructor in RecordFormatException:
--------8<---------------------------------------------------
   public RecordFormatException(String message, Throwable cause)
   {
      super(exception, cause);
   }

[and then]

   catch (Exception introspectionException)
   {
      throw new RecordFormatException("...", introspectionException);
   }
-------->8---------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to