[MAGNOLIA-3114] Simple context constructor is ambiguous for Java 5 compiler Created: 10/Mar/10  Updated: 23/Jan/13  Resolved: 10/Mar/10

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 4.3
Fix Version/s: 4.3

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

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   

SimpleContext has 2 constructors, one that takes Map as an parameter and other that takes Context. However the Context extends Map and therefore Java 5 compiler using stricter rules then Java 1.4 would fail to compile any class that tries to invoke constructor taking the Context as an argument. As a result for example Scheduler will not compile under Java 5.


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