@@ -0,0 +1,2814 @@
+package com.alibaba.json.bvt.issue_1300;%0A%0Aimport com.alibaba.fastjson.support.jaxrs.FastJsonProvider;%0Aimport org.glassfish.jersey.client.ClientConfig;%0Aimport org.glassfish.jersey.server.ResourceConfig;%0Aimport org.glassfish.jersey.test.JerseyTest;%0Aimport org.glassfish.jersey.test.TestProperties;%0Aimport org.junit.Test;%0A%0Aimport javax.ws.rs.Consumes;%0Aimport javax.ws.rs.POST;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.Produces;%0Aimport javax.ws.rs.client.Entity;%0Aimport javax.ws.rs.core.Application;%0Aimport javax.ws.rs.core.Response;%0Aimport java.io.Serializable;%0A%0A/**%0A * %3Cp%3ETitle: Issue1367_jaxrs%3C/p%3E%0A * %3Cp%3EDescription: %3C/p%3E%0A *%0A * @author Victor.Zxy%0A * @version 1.0%0A * @since 2017/8/7%0A */%0Apublic class Issue1367_jaxrs extends JerseyTest %7B%0A%0A    public static class AbstractController%3CID extends Serializable, PO extends Issue1367.GenericEntity%3CID%3E%3E %7B%0A%0A        @POST%0A        @Path(%22/typeVariableBean%22)%0A        @Produces(javax.ws.rs.core.MediaType.APPLICATION_JSON)%0A        @Consumes(javax.ws.rs.core.MediaType.APPLICATION_JSON)%0A        public PO save(PO dto) %7B%0A            //do something%0A            return dto;%0A        %7D%0A    %7D%0A%0A    @Path(%22beanController%22)%0A    public static class BeanController extends AbstractController%3CLong, Issue1367.TypeVariableBean%3E %7B%0A%0A        @POST%0A        @Path(%22/parameterizedTypeBean%22)%0A        @Produces(javax.ws.rs.core.MediaType.APPLICATION_JSON)%0A        @Consumes(javax.ws.rs.core.MediaType.APPLICATION_JSON)%0A        public String parameterizedTypeBean(Issue1367.ParameterizedTypeBean%3CString%3E parameterizedTypeBean) %7B%0A            return parameterizedTypeBean.getT();%0A        %7D%0A%0A    %7D%0A%0A    @Override%0A    protected void configureClient(ClientConfig config) %7B%0A        config.register(FastJsonProvider.class);%0A    %7D%0A%0A    @Override%0A    protected Application configure() %7B%0A        enable(TestProperties.LOG_TRAFFIC);%0A        enable(TestProperties.DUMP_ENTITY);%0A%0A        ResourceConfig config = new ResourceConfig();%0A%0A        config.register(FastJsonProvider.class);%0A        config.packages(%22com.alibaba.json.bvt.issue_1300%22);%0A        return config;%0A    %7D%0A%0A    @Test%0A    public void testParameterizedTypeBean() throws Exception %7B%0A%0A        String request = %22%7B%5C%22t%5C%22: %5C%22victor zeng%5C%22%7D%22;%0A%0A        Response response = target(%22beanController%22).path(%22parameterizedTypeBean%22).request().%0A                accept(%22application/json;charset=UTF-8%22).post(Entity.json(request));%0A%0A        System.out.println(response.readEntity(String.class));%0A%0A    %7D%0A%0A    @Test%0A    public void testTypeVariableBean() throws Exception %7B%0A%0A        String request = %22%7B%5C%22id%5C%22: 1%7D%22;%0A%0A        Response response = target(%22beanController%22).path(%22typeVariableBean%22).request().%0A                accept(%22application/json;charset=UTF-8%22).post(Entity.json(request));%0A%0A        System.out.println(response.readEntity(String.class));%0A%0A    %7D%0A%7D%0A

add test case