[ https://issues.apache.org/jira/browse/SCB-1133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
liubao closed SCB-1133. ----------------------- Fix Version/s: (was: java-chassis-2.9.0) Resolution: Won't Fix > 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: Haishi Yao > Assignee: Haishi Yao > 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 (v8.20.10#820010)