ASF Bugzilla – Attachment 4036 Details for
Bug 15050
[PATCH]HSSFWorkbook#cloneSheet() throws RuntimeException
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
To Fix simply is,Record implements Cloneable.
patch4.txt (text/plain), 823 bytes, created by
Toshiaki Kamoshida
on 2002-12-04 05:30:00 UTC
(
hide
)
Description:
To Fix simply is,Record implements Cloneable.
Filename:
MIME Type:
Creator:
Toshiaki Kamoshida
Created:
2002-12-04 05:30:00 UTC
Size:
823 bytes
patch
obsolete
>Index: Record.java >=================================================================== >RCS file: /home/cvspublic/jakarta-poi/src/java/org/apache/poi/hssf/record/Record.java,v >retrieving revision 1.4 >diff -u -r1.4 Record.java >--- Record.java 5 Sep 2002 00:26:23 -0000 1.4 >+++ Record.java 4 Dec 2002 05:22:37 -0000 >@@ -67,7 +67,7 @@ > * @version 2.0-pre > */ > >-public abstract class Record >+public abstract class Record implements Cloneable > { > > /** >@@ -244,6 +244,9 @@ > public abstract short getSid(); > > public Object clone() { >- throw new RuntimeException("The class "+getClass().getName()+" needs to define a clone method"); >+ try{ >+ return super.clone(); >+ } >+ catch(CloneNotSupportedException e){/*unreachable*/throw new InternalError();} > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15050
: 4036 |
4140
|
5441