YaoHaishi created SCB-1133:
------------------------------

             Summary: Defining param type in REST service class causes 
javassist.NotFoundException
                 Key: SCB-1133
                 URL: https://issues.apache.org/jira/browse/SCB-1133
             Project: Apache ServiceComb
          Issue Type: Bug
    Affects Versions: java-chassis-1.2.0
            Reporter: YaoHaishi
            Assignee: YaoHaishi


Currently if we define a inner class in a REST service class as parameter type, 
a javassist.NotFoundException will be thrown.

Service class definition like below will trigger this problem:
{code:java}
@RestSchema(schemaId = "testSchema")
@RequestMapping(path = "test")
public class TestRestService {
  @PostMapping(path = "post")
  public String post(@RequestBody TestBodyParam body) {
    return null == body ? "null" : body.toString();
  }

  public static class TestBodyParam {
    // fields omitted
  }
}
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to