@@ -0,0 +1,1303 @@
+package com.fasterxml.jackson.failing;%0A%0Aimport com.fasterxml.jackson.annotation.JsonFormat;%0Aimport com.fasterxml.jackson.annotation.JsonSubTypes;%0Aimport com.fasterxml.jackson.annotation.JsonTypeInfo;%0Aimport com.fasterxml.jackson.databind.BaseMapTest;%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0A%0Apublic class TestPOJOAsArrayPolymorphic2077 extends BaseMapTest%0A%7B%0A    // %5Bdatabind#2077%5D%0A    @JsonTypeInfo(%0A        use = JsonTypeInfo.Id.NAME,%0A        include = JsonTypeInfo.As.WRAPPER_ARRAY)  // Both WRAPPER_OBJECT and WRAPPER_ARRAY cause the same problem%0A    @JsonSubTypes(%7B%0A        @JsonSubTypes.Type(value = DirectLayout.class, name = %22Direct%22),%0A    %7D)%0A    public interface Layout %7B%0A    %7D%0A%0A    @JsonFormat(shape=JsonFormat.Shape.ARRAY)%0A    public static class DirectLayout implements Layout %7B%0A    %7D%0A%0A    private final ObjectMapper MAPPER = sharedMapper();%0A%0A    // %5Bdatabind#2077%5D%0A    public void testPolymorphicAsArray() throws Exception%0A    %7B%0A        // 20-Sep-2019, taut: this fails to add shape information, due to class annotations%0A        //   not being checked due to missing %60property%60 for %60createContextual()%60%0A%0A        String json = MAPPER.writeValueAsString(new DirectLayout());%0A%0A        Layout instance = MAPPER.readValue(json, Layout.class);%0A        assertNotNull(instance);%0A    %7D%0A%7D%0A

Add a failing test for #2077