[MGNLMAIL-59] Magnolia mail module core classes still using deprecated methods. Created: 18/Jun/14 Updated: 29/Aug/14 Resolved: 29/Aug/14 |
|
| Status: | Closed |
| Project: | Magnolia Mail Module |
| Component/s: | Backend |
| Affects Version/s: | None |
| Fix Version/s: | 5.2.1 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Bharath | Assignee: | Evzen Fochr |
| 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
|
| Date of First Response: |
| Description |
|
Hey, Magnolia core classes still using deprecated methods in mail module, please find the exception below.
2014-06-16 07:23:00,894 WARN info.magnolia.module.mail.MailTemplate : A deprecated class or method was used: Use IoC!. Check the following trace: info.magnolia.module.mail.MailModule.getInstance(MailModule.java:80), info.magn
olia.module.mail.MailTemplate.initSession(MailTemplate.java:324), the full stracktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category.
is there any workaround to fix this issue? Kindly me know if any other details required. |
| Comments |
| Comment by Roman Kovařík [ 29/Aug/14 ] |
|
Add non-parametric constructor to preserve binary compatibility: /**
* @deprecated since 5.2.1. use {@link #MailCommand(ModuleRegistry)} instead.
*/
public MailCommand() {
this.moduleRegistry = Components.getComponent(ModuleRegistry.class);
}
Mark also public MgnlMailFactory() as deprecated. |