Similar answer, the name applies to the mapping method were it is used (GenericTypeMapper):


    public <T extends TypeB & Serializable> T getWildCardExtendsMBType(WildCardExtendsMBWrapper<? extends T> t) {
        return t.getWrapped();
    }

So, what we’re looking for in this method is Type that extends both TypeB and implements a Serializable.. The only type that satisfies this condition is TypeC.



Cheers,
Sjaak



On 3 jan. 2014, at 22:54, Gunnar Morling <notifications@github.com> wrote:

> In processor/src/test/java/org/mapstruct/ap/test/conversion/generics/WildCardExtendsMBWrapper.java:
> 
> > + *
> > + *      http://www.apache.org/licenses/LICENSE-2.0
> > + *
> > + *  Unless required by applicable law or agreed to in writing, software
> > + *  distributed under the License is distributed on an "AS IS" BASIS,
> > + *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> > + *  See the License for the specific language governing permissions and
> > + *  limitations under the License.
> > + */
> > +package org.mapstruct.ap.test.conversion.generics;
> > +
> > +/**
> > + * Testing Multiple Bounds
> > + * @author sjaak
> > + */
> > +public class WildCardExtendsMBWrapper<T> {
> Similar to WildCardExtendsWrapper, where are the multiple bounds here?
> 
> —
> Reply to this email directly or view it on GitHub.
>