Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and Data Center
  2. CONFSERVER-24902

Label Manager updates in 4.2 break compatibility with plugins compiled against earlier releases.

    XMLWordPrintable

    Details

      Description

      There appear to be updates to the label manager interface in 4.2-beta1.

      The changes are not binary compatible with plugins compiled against 4.1 and earlier Confluence versions. Normally we would expect to see a method become deprecated for a few releases before it is removed/has its signature changed.

      Example: Adding a label to a page via the call to labelManager.addLabel now throws:

      [INFO] [talledLocalContainer] java.lang.NoSuchMethodError: com.atlassian.confluence.labels.LabelManager.addLabel(Lcom/atlassian/confluence/core/ContentEntityObject;Lcom/atlassian/confluence/labels/Label;)I
      

      For code compiled against 4.1 and running in 4.2. The same code compiled against 4.2 works fine. Unfortunately compiling all code against 4.2 is not an option due to the new interface EditableLabel not being found prior to 4.2.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              slancashire Steve Lancashire
              Reporter:
              shannon Shannon Krebs
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: