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

Also build and test on Java 17 #1525

Merged
merged 6 commits into from
Oct 23, 2024
Merged

Also build and test on Java 17 #1525

merged 6 commits into from
Oct 23, 2024

Conversation

fhoeben
Copy link
Collaborator

@fhoeben fhoeben commented Oct 21, 2024

Update GitHub workflow to also build FitNesse on Java 17 and run all tests

@six42 as you can see I had to update one test case to get the build to pass. It appears that fitnesse.slim.LoggingOutputStream does not behave the same on Java 17 as it did on earlier versions. An extra newline is added to the execution log for each println() call to either stdin or stout when the communication with the Slim server is not via a socket.

I have had issues in the past with this way of communicating between FitNesse and the Slim server (character encoding trouble on an IBM JVM on windows), so in my tests I always just have Slim choose a random free port (by setting the Slim port to 0). Changing the communication protocol to use an actual socket also fixed this test. I couldn't put my finger on why the extra newline is added, but maybe it's an obvious fix for you?
I find the name of the class (LoggingOutputStream) a bit strange also, it's not logging its decorating the input it receives before forwarding it to the nested stream as I understand it. Maybe it would already be much simpler (the newline handling in there) if instead of just forwarding the lines received as text the records would be Base64 encoded (then each record will just always be 1 line I think)?

@fhoeben
Copy link
Collaborator Author

fhoeben commented Oct 23, 2024

@six42 I don't quite understand why I get the extra newline, but I added some code to deal with the difference. Could probably be done nicer though. So if you have some time....

@fhoeben fhoeben merged commit 8558af4 into unclebob:master Oct 23, 2024
3 checks passed
@fhoeben fhoeben deleted the multi-java branch October 23, 2024 18:00
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.

1 participant