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

Split the PatternValidator into 2 classes. #311

Merged
merged 1 commit into from
Jun 27, 2020
Merged

Conversation

buuhuu
Copy link
Contributor

@buuhuu buuhuu commented Jun 26, 2020

This is necessary to guarantee that classes from org.joni and org.jcodings are only loaded when the ecma262 configuration is set. Having both in the same class and one of the class' members being a class from the before mentioned packages fails with a NoClassDefFoundException when running in an OSGI environments with the imports of the packages being optional and not present. (fixes #307 )

This is necessary to guarantee that classes from org.joni and org.jcodings
are only loaded when the ecma262 configuration is set. Having both in the
same class and one of the class' members being a class from the before
mentioned packages fails with a NoClassDefFoundException when running in
an OSGI environments with the imports of the packages being optional and
not present.
@codecov-commenter
Copy link

Codecov Report

Merging #311 into master will decrease coverage by 0.56%.
The diff coverage is 36.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #311      +/-   ##
============================================
- Coverage     70.96%   70.39%   -0.57%     
+ Complexity      643      637       -6     
============================================
  Files            74       74              
  Lines          2445     2466      +21     
  Branches        515      520       +5     
============================================
+ Hits           1735     1736       +1     
- Misses          506      528      +22     
+ Partials        204      202       -2     
Impacted Files Coverage Δ Complexity Δ
...in/java/com/networknt/schema/PatternValidator.java 33.89% <36.00%> (-14.76%) 2.00 <1.00> (-5.00)
...java/com/networknt/schema/SpecVersionDetector.java 92.30% <0.00%> (-0.55%) 6.00% <0.00%> (-1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5dadf03...0fdee4a. Read the comment docs.

@stevehu stevehu merged commit 5cceac7 into networknt:master Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make runtime dependency to org.jruby.joni:joni optional
3 participants