You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2009/08/28 07:54:59 UTC

DO NOT REPLY [Bug 46776] POI does not work when run the method "cloneSheet()"

https://issues.apache.org/bugzilla/show_bug.cgi?id=46776


swingo71@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


--- Comment #7 from swingo71@gmail.com 2009-08-27 22:54:57 PDT ---
I use poi-3.5-beta6 jar files and
check HSSFWorkbook.cloneSheet() method.
But this BUG was happended yet.

I wonder this Bug is happend in 
org.apache.poi.hssf.record.Record.clone method.

at org.apache.poi.hssf.record.Record.clone
--------
public Object clone() {
    if (false) {
        // TODO - implement clone in a more standardised way
        try {
            return super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
    }
    throw new RuntimeException("The class "+getClass().getName()+" needs to
define a clone method");
}
--------
This code seems that throw RuntimeException ALWAYS.
Is it correct?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org