You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "YaoHaishi (JIRA)" <ji...@apache.org> on 2019/01/25 04:51:00 UTC

[jira] [Created] (SCB-1133) Defining param type in REST service class causes javassist.NotFoundException

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)