Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.1.0
-
None
-
Severity 3 - Minor
-
Description
The way we throw an exception for the clone() method in the ContentEntityObject has changed but the javadoc hasn't been updated to reflect it.
The documentation should be updated to reflect the new way that exceptions are handled.
we're now catching it and throwing a RuntimeException instead, which will be 'caused by' the CloneNotSupportedException.
@Override public Object clone() { ContentEntityObject clone; try { clone = (ContentEntityObject) super.clone(); } catch (CloneNotSupportedException ex) { throw Throwables.propagate(ex); }