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

8294989: ResourceBundle naming convention issue in JdbcRowSetResourceBundle.java #10612

Closed
Closed
4 changes: 2 additions & 2 deletions test/jdk/javax/sql/resourceBundleTests/ValidateGetBundle.java
Original file line number Diff line number Diff line change
@@ -58,8 +58,8 @@ private static void testResourceBundleAccess(String bundleName, boolean expectBu
var bundle = ResourceBundle.getBundle(bundleName,
Locale.US, JdbcRowSetResourceBundle.class.getModule());
if (!expectBundle) {
String message = "$$$ '%s' shouldn't have loaded!%n";
throw new RuntimeException(String.format(message, bundleName));
throw new RuntimeException(
String.format("$$$ Error: '%s' shouldn't have loaded!%n", bundleName));
}
System.out.printf("$$$ %s found as expected!%n", bundleName);
Copy link
Member

Choose a reason for hiding this comment

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

I think expectBundle needs to be examined here. If it is false, it should throw an exception.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a check there for case when expectBundle is false

} catch (MissingResourceException mr) {