Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JAVA][library: vertx] Generated async and rx sample server code fails 'mvn test' #7359

Closed
ccozzolino opened this issue Jan 11, 2018 · 0 comments

Comments

@ccozzolino
Copy link
Contributor

Description

Originally reported by @wing328 in #7230

mvn test fails for the server samples generated by
java-vertx-async-petstore-server.sh
java-vertx-rx-petstore-server.sh

Original template attempts to instantiate a non-generated class leading to a compile error.

To fix, we can use reflection to push instantiation of the required class to runtime.

Swagger-codegen version

All versions that with vertx async & rx support

Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
@wing328 wing328 added this to the v2.4.0 milestone Jan 11, 2018
ccozzolino added a commit to ccozzolino/swagger-codegen that referenced this issue Jan 11, 2018
@wing328 wing328 modified the milestones: v2.4.0, v2.3.1 Jan 11, 2018
@wing328 wing328 closed this as completed Jan 11, 2018
wing328 pushed a commit that referenced this issue Jan 14, 2018
* #7359 Fix - use reflection to instantiate non-generated class (#7360)

* add tests for java vertx petstore

* add swagger example to README.md (#7368)

* Fix assignment of new object instance to variable

Fixes `Error in foobar$fromJSONString(s) : object 'CategoryObject' not found`
Discussion in #6520 (comment) ,
thanks @wing328 for encouraging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants