publicissapient-france/selma

withImmutables doesn't match on generic types

facboy opened this issue · 0 comments

It seems that the withImmutables annotation does not match on generic types, eg this produces a compilation error:

import fr.xebia.extras.selma.Mapper;

@Mapper(withImmutables = Class.class)
public interface TestMapper {
    TestBean clone(TestBean source);

    class TestBean {
        private Class<?> cls;

        public Class<?> getCls() {
            return cls;
        }

        public void setCls(Class<?> cls) {
            this.cls = cls;
        }
    }
}