You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "tballison (via GitHub)" <gi...@apache.org> on 2026/04/07 18:30:11 UTC

[PR] decouple xlsb from xmlbeans [poi]

tballison opened a new pull request, #1043:
URL: https://github.com/apache/poi/pull/1043

   This attempts to decouple xmlbeans from xlsb.
   
   The one area of concern I have is the public api change:
   
   XSSFSheetXMLHandler.SheetContentsHandler.cell(String, String, XSSFComment) → cell(String, String, Comment)
      
   This is:
   * Source-compatible: Comment is a supertype of XSSFComment, so existing implementations that reference XSSFComment just need to change their parameter type and recompile
   * Binary-incompatible: Any compiled code implementing SheetContentsHandler will need recompilation against the new version
   
   If this is a bridge too far, we can try to refactor in another way.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: [PR] decouple xlsb from xmlbeans [poi]

Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning merged PR #1043:
URL: https://github.com/apache/poi/pull/1043


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: [PR] decouple xlsb from xmlbeans [poi]

Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning commented on code in PR #1043:
URL: https://github.com/apache/poi/pull/1043#discussion_r3047267859


##########
poi-ooxml/src/main/java/org/apache/poi/xssf/binary/XSSFBSheetHandler.java:
##########
@@ -447,9 +447,9 @@ public interface XSSFBSheetContentsHandler {
          *     </code>. See the code in <code>
          * poi-examples/src/main/java/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java</code> for an
          *     example of how to handle this scenario.
-         * @see #doubleCell(String, double, XSSFComment, ExcelNumberFormat)
+         * @see #doubleCell(String, double, Comment, ExcelNumberFormat)
          */
-        void stringCell(String cellReference, String value, XSSFComment comment);
+        void stringCell(String cellReference, String value, Comment comment);

Review Comment:
   these are breaking changes - we have a policy of deprecating APIs and later removing them
   
   Can we keep the XSSFComment methods and deprecate them adding the Comment overloads?
   
   Add `@Removal` annotation to the deprecated methods (v7.0.0 removal). `@since 6.0.0` to the new methods.
   
   If methods are not public then it is ok to change them without this deprecate and overload approach.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org