Skip to content

Conversation

@tjwatson
Copy link
Member

@tjwatson
Copy link
Member Author

tjwatson commented Oct 24, 2025

!build (view Open Liberty Personal Build - ❌ completed with errors/failures.)

Note: Target locations of links might be accessible only to IBM employees.

@tjwatson tjwatson requested a review from dazavala October 24, 2025 17:14
@LibbyBot
Copy link
Member

Code analysis and actions

DO NOT DELETE THIS COMMENT.
  • 2 FAT files were changed, added, or removed.

  • Check that the build did not break the affected FAT suite(s).

  • 2 infrastructure code files were changed.

  • 6 product code files were changed.

  • Please describe in a separate comment how you tested your changes.

Copy link
Member

@dazavala dazavala left a comment

Choose a reason for hiding this comment

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

Hello @tjwatson.

  • There are few backdated copyrights that I did not mention because this is an overlay, and any dates can be updated if necessary when the overlay is removed.
  • None of the concerns or changes I noted are mandatory.
  • Finally, all changes I expected to find in this solution are here.

I'm not perfectly clear about the behavior of methods Debug.loaderWithClass(), Debug.loaderWithPackage(), and Debug.dynamicImport(), but their implementations are consistent with respect to how they return debug option strings.


classload("org.osgi.framework.wiring.BundleWiring");
List<String> found = server.findStringsInLogsAndTraceUsingMark("LoggerName:org.eclipse.osgi/debug/loader/packages");
assertFalse("Expected to find debug/loader/packages LoggerName.", found.isEmpty());
Copy link
Member

Choose a reason for hiding this comment

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

Never a fan of assertFalse(), but assertions here and on line 235 look correct.

classload("org.osgi.framework.wiring.BundleWiring");
List<String> found = server.findStringsInLogsAndTraceUsingMark("LoggerName:org.eclipse.osgi/debug/loader/packages");
assertFalse("Expected to find debug/loader/packages LoggerName.", found.isEmpty());
// need to escape parenthises for regex here. Expecting to not have trace for the org.osgi.framework package
Copy link
Member

Choose a reason for hiding this comment

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

Change spelling to parentheses here and on line 233.

&& !(EQUINOX_LOGGER_NAME.equals(level.getKey())
|| PERF_LOGGER_NAME.equals(level.getKey()))) {
int listIdx = level.getKey().lastIndexOf(ADD_LIST_KEY);
if (listIdx != -1) {
Copy link
Member

Choose a reason for hiding this comment

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

I've always thought idx >= 0 to be safer.

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