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

java: catch exceptions if we fail to load mpi_java #10697

Merged
merged 1 commit into from
Aug 22, 2022

Conversation

hppritcha
Copy link
Member

library.

Signed-off-by: Howard Pritchard howardp@lanl.gov

@hppritcha
Copy link
Member Author

a step along the way to retaining ease of use with prrte for java apps

Copy link
Member

@kawashima-fj kawashima-fj left a comment

Choose a reason for hiding this comment

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

@hppritcha Just a question. How the behavior is changed? Only the messsage change? Exiting cleanly?

Comment on lines 208 to 210
{
System.loadLibrary("mpi_java") ;
}
catch (UnsatisfiedLinkError e)
{
System.err.println("mpi java lib failed to load" + e + "\n") ;
System.exit(1) ;
}
Copy link
Member

Choose a reason for hiding this comment

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

Please use tabs instead of spaces for indentation. Other Java codes in OMPI use tabs.

}
catch (UnsatisfiedLinkError e)
{
System.err.println("mpi java lib failed to load" + e + "\n") ;
Copy link
Member

Choose a reason for hiding this comment

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

Please insert a space of something before the Java exception message.

Suggested change
System.err.println("mpi java lib failed to load" + e + "\n") ;
System.err.println("mpi java lib failed to load: " + e + "\n") ;

@hppritcha
Copy link
Member Author

@kawashima-fj check now, hopefully i got the tabs right!

try
{
System.loadLibrary("mpi_java") ;
}
Copy link
Member

@kawashima-fj kawashima-fj Aug 22, 2022

Choose a reason for hiding this comment

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

The line 210 still has space-indentation.

Copy link
Member Author

Choose a reason for hiding this comment

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

okay i think that fixed it.

library.

Signed-off-by: Howard Pritchard <howardp@lanl.gov>
@hppritcha
Copy link
Member Author

@kawashima-fj i think line 210 is fixed now

@hppritcha hppritcha merged commit c9c9e27 into open-mpi:main Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants