-
Notifications
You must be signed in to change notification settings - Fork 543
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
[SUREFIRE-1882] Fix failures when compiled on Java 9+ and run on Java 8 #332
Conversation
Cast to Buffer to avoid java.lang.NoSuchMethodError due to JDK API breakage. This was fixed in a similar way in apache/maven-wagon@92c0d2a. See mongodb/mongo-java-driver@21c91bd for details.
Looks like the "CI for Windows 1" failure was caused by a network problem:
The same build was successful on my local workstation a few minutes before the CI run. |
@kriegaex I did rerun of the build. The networ is bad sometimes. |
...efire-common/src/test/java/org/apache/maven/plugin/surefire/extensions/StreamFeederTest.java
Show resolved
Hide resolved
.../main/java/org/apache/maven/plugin/surefire/report/Utf8RecodingDeferredFileOutputStream.java
Show resolved
Hide resolved
...e-common/src/test/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporterTest.java
Outdated
Show resolved
Hide resolved
surefire-api/src/main/java/org/apache/maven/surefire/api/stream/AbstractStreamDecoder.java
Show resolved
Hide resolved
surefire-api/src/main/java/org/apache/maven/surefire/api/stream/AbstractStreamEncoder.java
Show resolved
Hide resolved
Maybe you want to contribute instead of micro-managing my edits? 😉 Just add commits to this PR to your heart's content. I would not mind at all, considering myself your junior in this project anyway. I am an agile coach in my daytime job, not a professional software developer (I was 20 years ago). So I am all open for collaborative software development because this is what I am teaching to my coachee dev teams. |
Is the Travis CI build really still necessary? |
I talked about the Travis CI with our Infra team. They have migrated |
We can move on if the fix is complete. |
After having checked all your code review suggestions plus all the other places I changed which you did not even mention, my assumption was confirmed that collaboratively working on this would have saved time. If you had just checked out the PR and tried to flip types in your IDE, you would have noticed. I think that code reviews outside of an IDE which actually compiles are not particularly helpful in this case where it is about changing types in order to avoid casting. So - no offence meant - this was a waste of time for both of us and I want to re-invite you to piggy-back on my PR and just commit whatever improvements you have for it. Before you could even write "could you edit this like that?", you would have done it already with no more time spent but without me spending time on checking, commenting back, you reading the comments again. We could
Sorry for lobbying here and making this a general discussion, but I always do that when contributing to a project for the first time in order to find out if it would be attractive for me to contribute again in the future. I am strictly against the policy in so many OSS projects that PRs get micro-managed in many iterations up to the point in which the contributor, not unlike a remote-controlled puppet, has shaped the code into something resembling what the reviewer would have written by herself. Better to accept an imperfect, but valuable PR and help polishing it by yourself. Then chances are much higher that the code ends up the way you like it as a maintainer. Also, the contributor can learn from the edits. Win-win. |
Use Buffer instead of ByteBuffer in method StatelessXmlReporterTest.testSyncOnDeferredFile() in order to avoid casts and still be compatible with JDK 8.
@kriegaex |
@kriegaex |
@Tibor17, thanks for the Slack invitation. Please contact me through one of the channels listed on my StackOverflow profile (scroll to the bottom of my profile text), e.g. Gitter or Telegram. There I can tell you my e-mail address. |
@kriegaex |
Cast to Buffer to avoid java.lang.NoSuchMethodError due to JDK API
breakage.
This was fixed in a similar way in apache/maven-wagon@92c0d2a.
See mongodb/mongo-java-driver@21c91bd for details.