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 08:29:00 UTC
[jira] [Updated] (SCB-1133) Defining param type in REST service
class causes javassist.NotFoundException
[ https://issues.apache.org/jira/browse/SCB-1133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
YaoHaishi updated SCB-1133:
---------------------------
Component/s: Java-Chassis
> 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
> Components: Java-Chassis
> Affects Versions: java-chassis-1.2.0
> Reporter: YaoHaishi
> Assignee: YaoHaishi
> Priority: Major
>
> 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)