There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-96ec9854-675a-4d19-ada0-997ed7e5ea48 XWIKI-25035 Open

Move the deprecated updateLinksOnFarm APIs of the refactoring requests to legacy

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-e846c483-b537-4bee-a86c-c21097dcbf6d Changes by Vincent Massol on 27/Sep/26 18:03
 
Description: The {{updateLinksOnFarm}} accessors of {{DeleteRequest}} and {{AbstractCopyOrMoveRequest}}, and the {{DeleteRequest.UPDATE_LINKS_ON_FARM}} constant, have been deprecated since 14.8RC1 and are no-ops (the flag is not taken into account anymore). Nothing in xwiki-commons, xwiki-rendering or xwiki-platform uses them.

Move them to {{xwiki-platform-legacy-refactoring-api}}, which already weaves {{xwiki-platform-refactoring-api}}, so that the main module no longer exposes them while existing extensions keep working with the legacy module (distributed by default).

* The methods are re-added by AspectJ inter-type declarations.
* The constant is re-added through a {{CompatibilityDeleteRequestConstants}} interface that the aspect makes {{DeleteRequest}} implement, since a static final field added by an aspect is neither final nor a compile-time constant.
* {{AbstractCopyOrMoveRequest}} gets an explicit {{serialVersionUID}}
(the value previously computed by the JVM) , required by AspectJ to add public methods to a serializable class.