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

Upgraded to Java 11 #17

Merged
merged 1 commit into from
Aug 28, 2019
Merged

Upgraded to Java 11 #17

merged 1 commit into from
Aug 28, 2019

Conversation

RubberDuckJordi
Copy link

Java 8 is no longer supported in this version!

The previous way of reflection used in BuildCommandAdvice is no longer
working in Java 11. This has been replaced with a way that does work.

Setting Arrays also no longer worked. A field of type String[] could
no longer be filled with an Object[] as was possible in Java 8. This
bit has been improved to fill the field with a String[]. The code
detects of what type the field is and creates an Array of said type
accordingly, keeping this dynamic for all types of arrays.

@arjanvlek
Copy link
Contributor

Travis needs to be updated to Java 11 as well. See the failed CI builds in this PR

@RubberDuckJordi
Copy link
Author

What is Travis and how do I upgrade it?

@arjanvlek
Copy link
Contributor

It’s the build system used on GitHub. See https://travis-ci.org/42BV/heph/builds/577188512?utm_source=github_status&utm_medium=notification and notice where it says oracle jdk 8 at the bottom. That should be set to 11 in

- oraclejdk8

@codecov
Copy link

codecov bot commented Aug 27, 2019

Codecov Report

Merging #17 into master will decrease coverage by 1.8%.
The diff coverage is 70.9%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #17      +/-   ##
============================================
- Coverage     84.44%   82.63%   -1.81%     
- Complexity      111      118       +7     
============================================
  Files            12       12              
  Lines           315      334      +19     
  Branches         45       48       +3     
============================================
+ Hits            266      276      +10     
- Misses           23       32       +9     
  Partials         26       26
Impacted Files Coverage Δ Complexity Δ
...ava/nl/_42/heph/generation/BuildCommandAdvice.java 68.75% <22.22%> (-10.57%) 6 <0> (ø)
src/main/java/nl/_42/heph/DefaultBuildCommand.java 82.19% <80.43%> (-1.23%) 68 <9> (+7)

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 85c8f69...bcc3958. Read the comment docs.

Java 8 is no longer supported in this version!

The previous way of reflection used in BuildCommandAdvice is no longer
working in Java 11. This has been replaced with a way that does work.

Setting Arrays also no longer worked. A field of type String[] could
no longer be filled with an Object[] as was possible in Java 8. This
bit has been improved to fill the field with a String[]. The code
detects of what type the field is and creates an Array of said type
accordingly, keeping this dynamic for all types of arrays.
@robert-bor robert-bor merged commit 2517d23 into master Aug 28, 2019
@RubberDuckJordi RubberDuckJordi deleted the feature/java-11 branch August 28, 2019 07:18
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.

3 participants