[MAGNOLIA-2959] MgnlContext.doInsystemContext: binary incompatible change in version 4.2 Created: 29/Nov/09  Updated: 23/Jan/13  Resolved: 11/Dec/09

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 4.2, 4.2.1
Fix Version/s: 4.2.2

Type: Bug Priority: Blocker
Reporter: Fabrizio Giustina Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLPUR-40 Re-release against Magnolia 4.2.3 Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

The change to the signature in MgnlContext.doInsystemContext() introduced for MAGNOLIA-2921 introduced a binary incompatibility with everything was compiled with al older version.
Changing the return value from "void" to "java.lang.Void" causes the following exception:

2009-11-29 15:32:44,998 ERROR info.magnolia.cms.servlets.MVCServletHandlerImpl  : can't call command: show
java.lang.NoSuchMethodError: info.magnolia.context.MgnlContext.doInSystemContext(Linfo/magnolia/context/MgnlContext$SystemContextOperation;)V
	at net.sourceforge.openutils.mgnlmedia.media.utils.ImageUtils.checkOrCreateResolution(ImageUtils.java:565)
	at net.sourceforge.openutils.mgnlmedia.media.utils.ImageUtils.checkOrCreateResolution(ImageUtils.java:511)
	at net.sourceforge.openutils.mgnlmedia.media.types.impl.ImageTypeHandler.getThumbnailUrl(ImageTypeHandler.java:48)
	at net.sourceforge.openutils.mgnlmedia.media.pages.MediaFolderViewPage.show(MediaFolderViewPage.java:257)

According to the comments in MAGNOLIA-2921 this should not be what expected, the original method should have been deprecated without changes (and it actually has been deprecated, but after such modification), and a new method has been added.


Generated at Mon Feb 12 03:41:48 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.