You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2010/05/09 19:46:49 UTC
[jira] Resolved: (PDFBOX-406) Small error in class defination in
PDMatrix it should not be Cloneable
[ https://issues.apache.org/jira/browse/PDFBOX-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-406.
---------------------------------------
Fix Version/s: 1.2.0
Resolution: Fixed
I've applied the patch with version 942569.
Thanks to peter for the contribution
> Small error in class defination in PDMatrix it should not be Cloneable
> ----------------------------------------------------------------------
>
> Key: PDFBOX-406
> URL: https://issues.apache.org/jira/browse/PDFBOX-406
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Environment: All
> Reporter: Peter_Lenahan@ibi.com
> Fix For: 1.2.0
>
>
> The interface Cloneable has no methods defined.
> public interface Cloneable {
> }
> In package org.apache.pdfbox.pdmodel.common;
> public class PDMatrix implements Cloneable, COSObjectable
> The class, PDMatrix implements the Cloneable interface, yet it does not implement
> The clone() method, if a method were to try and clone the class, there would be an exception thrown
> Because this method is missing.
> The actual method Object.clone is a protected method.
> There are 2 possible solutions, add this method
> public Object clone() {
> }
> But; since there are no apparently calls to clone this class,
> I suggest removing the Cloneable interface from the declaration.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.