Skip to content

Fix Java 19#3584

Merged
dwightguth merged 5 commits intodevelopfrom
java19
Aug 18, 2023
Merged

Fix Java 19#3584
dwightguth merged 5 commits intodevelopfrom
java19

Conversation

@dwightguth
Copy link
Copy Markdown
Contributor

This PR fixes K on Java 19 by dealing with the problems relating to nailgun and kserver that were causing it to crash. We do this primarily by updating to a newer version of nailgun with a fix for the issue that it had, but we need to call a different function to exit if Nailgun is active in order to make use of the fix, so there is a slight refactoring to how we call the exit function in K now.

Not tested yet; don't merge.

@rv-jenkins rv-jenkins changed the base branch from master to develop August 17, 2023 18:18
String[] args2 = Arrays.copyOfRange(context.getArgs(), 1, context.getArgs().length);
int result = kserver.run(context.getArgs()[0], args2, new File(context.getWorkingDirectory()), (Map) context.getEnv(), startTime);
System.exit(result);
context.exit(result);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the difference between Main.exit and context.texit?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

context.exit can be called if you are 100% sure that you are running nailgun. It's probably best to be consistent though; I will fix this.

Copy link
Copy Markdown
Contributor

@radumereuta radumereuta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dwightguth dwightguth merged commit c0656ba into develop Aug 18, 2023
@dwightguth dwightguth deleted the java19 branch August 18, 2023 15:02
@Baltoli Baltoli mentioned this pull request Dec 12, 2023
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