-
Bug
-
Resolution: Won't Fix
-
Neutral
-
None
-
None
-
None
When doing the following:
class FooBar {
@TransformedBy(MyTransformer.class)
void setBaz(Command c) {}
}
One would expect that MyTransformer is only used when setting the Command instance on FooBar's Baz property. However, the unit test committed with this ticket id reveals that it is set globally, for all instances of Command
... in tur, this also means that setter-based transformers are only taken into account if the setter in question is the first where Node2Bean encounters the type in question (it's otherwise using a cached TypeDescriptor)
Acceptance criteria
- caused by
-
MAGNOLIA-4648 Node2Bean: Allow specifying transformers via annotation
- Closed