You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Pe...@ibi.com on 2009/01/20 10:17:54 UTC

small error in class defination in PDMatrix should not be Cloneable

 

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.

 

Thanks,

Peter