[MAGNOLIA-3055] Content2Bean should not try to lookup Transformer classes for primitive or array types Created: 02/Feb/10 Updated: 23/Jan/13 Resolved: 02/Feb/10 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | None |
| Fix Version/s: | 4.3 |
| Type: | Improvement | Priority: | Major |
| Reporter: | Magnolia International | Assignee: | Magnolia International |
| 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)
|
| Description |
|
Currently, c2b's TypeMappingImpl is pretty naïve, and tries to lookup a Transformer by appending Transformer to the property's class name (beanClass.getName() + "Transformer"). This won't work for array or primitive types. [Lcom.foobar.MyClassNameTransformer; intTransformer. Additionally, this will fail miserably when attempting to load classes off the repository because of the [ character. |