[Java][Jersey2] Add Java6 compatibility for Jersey2#4033
Merged
wing328 merged 2 commits intoswagger-api:masterfrom Oct 19, 2016
Merged
[Java][Jersey2] Add Java6 compatibility for Jersey2#4033wing328 merged 2 commits intoswagger-api:masterfrom
wing328 merged 2 commits intoswagger-api:masterfrom
Conversation
Contributor
|
@k1w1m8 thanks! The change looks good to me. |
Contributor
Author
|
Great, thanks. Are you happy for it be up to users of supportJava6 to add commons.io dependency manually? Is there somewhere we should document that? |
3 tasks
Contributor
|
Ideally we should do it automatically in the pom.xml, build.gradle, sbt.build so as to save the developer's time. |
Contributor
Author
|
Ah yes, of course. Doh. Forgot we generated those too. |
3 tasks
acramatte
added a commit
to comerge/swagger-codegen
that referenced
this pull request
Oct 25, 2016
* upstream/master: (43 commits) [Java] BeanValidation + JAXRS CXF server generator (swagger-api#4068) update JS petstore samples nancyfx basePath => modulePath toggle (swagger-api#4053) Throw an Error object instead of a string [Qt5/C++] Arrays of primitive types fix (swagger-api#4046) fix NancyFX string parser (swagger-api#4048) Fix sanitizeTag to retain numbers and underscore in tag names add test for java6 jersey2 client hashCode and equals support for jdk6 for jersey2 (swagger-api#4039) update gitignore to include PetStore.pro.user increase timeout value for qt5 petstore test update undertow readme Java6 support for jersey2 (swagger-api#4033) [java] Allow setting test folder fix reserved word handling in model name (sinatra) better handling of reserved words for sintatra, dart improvements based on swagger-api#3568 (swagger-api#4021) [csharp] add missing anchor tags in readme (swagger-api#4019) Issue 3651 (swagger-api#4014) Added company (swagger-api#4015) ...
davidgri
pushed a commit
to davidgri/swagger-codegen
that referenced
this pull request
May 11, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)2.3.0branch for breaking (non-backward compatible) changes.Description of the PR
Java6 compatibility is being added via supportJava6 option. This PR makes a small change to Jersey2 to replace usage of Java 7 class java.nio.file.Files with reference to Apache commons.io.FileUtils.
I'm not sure exactly how to manage the additional dependency for commons io. Originally I saw it as part of swagger-codegen but of course that is only for the generation process. I doubt we want to add it as a dependency on the swagger runtime code, are you happy for it be up to users of supportJava6 to add manually?