@@ -0,0 +1,1076 @@
+package com.fasterxml.jackson.failing;%0A%0Aimport java.io.Serializable;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport com.fasterxml.jackson.databind.*;%0A%0A// %5Bdatabind#2331%5D%0Apublic class GenericNestedType2331Test extends BaseMapTest%0A%7B%0A    static class SuperNode%3CT%3E %7B %7D%0A    static class SuperTestClass %7B %7D%0A    %0A    static class Node%3CT extends SuperTestClass & Cloneable%3E extends SuperNode%3CNode%3CT%3E%3E implements Serializable %7B%0A%0A        public List%3CNode%3CT%3E%3E children;%0A%0A        public Node() %7B%0A            children = new ArrayList%3CNode%3CT%3E%3E();%0A        %7D%0A%0A        /**%0A         * The Wildcard here seems to be the Issue.%0A         * If we remove this full getter, everything is working as expected.%0A         * @return%0A         */%0A        public List%3C? extends SuperNode%3CNode%3CT%3E%3E%3E getChildren() %7B%0A            return children;%0A        %7D%0A    %7D    %0A    %0A    public void testGeneric2331() throws Exception %7B%0A        Node root = new Node();%0A        root.children.add(new Node());%0A%0A        String json = newObjectMapper().writeValueAsString(root);%0A        assertNotNull(json);%0A    %7D%0A%7D%0A

Add failing test for #2331