Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-52238

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 6.1.0
    • None

    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);
              }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mpaisley Mel Paisley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: