@@ -0,0 +1,1952 @@
+package com.fasterxml.jackson.failing;%0A%0Aimport com.fasterxml.jackson.annotation.JsonProperty;%0A%0Aimport com.fasterxml.jackson.databind.*;%0Aimport com.fasterxml.jackson.databind.cfg.ConstructorDetector;%0Aimport com.fasterxml.jackson.databind.introspect.AnnotatedMember;%0Aimport com.fasterxml.jackson.databind.introspect.AnnotatedParameter;%0Aimport com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector;%0A%0Apublic class CreatorNullPrimitives2977Test extends BaseMapTest%0A%7B%0A    @SuppressWarnings(%22serial%22)%0A    static class ABCParamIntrospector extends JacksonAnnotationIntrospector%0A    %7B%0A        @Override%0A        public String findImplicitPropertyName(AnnotatedMember param) %7B%0A            if (param instanceof AnnotatedParameter) %7B%0A                AnnotatedParameter ap = (AnnotatedParameter) param;%0A                switch (ap.getIndex()) %7B%0A                case 0: return %22a%22;%0A                case 1: return %22b%22;%0A                case 2: return %22c%22;%0A                default:%0A                    return %22param%22+ap.getIndex();%0A                %7D%0A            %7D%0A            return super.findImplicitPropertyName(param);%0A        %7D%0A    %7D%0A%0A    static class TestClass2977 %7B%0A        @JsonProperty(%22aa%22)%0A        final int a;%0A%0A        // work-around: add JsonProperty on parameter name, or JsonCreator%0A//        @com.fasterxml.jackson.annotation.JsonCreator%0A        public TestClass2977(int a) %7B%0A            this.a = a;%0A        %7D%0A    %7D%0A%0A    // %5Bdatabind#2977%5D%0A    public void testDefaultingWithNull2977() throws Exception%0A    %7B%0A        ObjectMapper mapper = jsonMapperBuilder()%0A                .enable(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES)%0A                .annotationIntrospector(new ABCParamIntrospector())%0A                .constructorDetector(ConstructorDetector.USE_PROPERTIES_BASED)%0A                .build();%0A        TestClass2977 result = mapper.readValue(a2q(%22%7B'aa': 8%7D%22), TestClass2977.class);%0A        assertEquals(8, result.a);%0A    %7D%0A%7D%0A

Add failing test for #2977