Skip to content

Add changes to build repo using jdk21#4476

Open
chamilaadhi wants to merge 1 commit intowso2:4.11.xfrom
chamilaadhi:4.11x-jdk21
Open

Add changes to build repo using jdk21#4476
chamilaadhi wants to merge 1 commit intowso2:4.11.xfrom
chamilaadhi:4.11x-jdk21

Conversation

@chamilaadhi
Copy link

No description provided.

@coderabbitai
Copy link

coderabbitai bot commented Feb 6, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment on lines 26 to +28
public void run() {
SecurityManager secMan = System.getSecurityManager();
if (secMan != null) {
secMan.checkPermission(new ManagementPermission("control"));
}

// Carbon is running within an AppServer
FrameworkLauncher frameworkLauncher = FrameworkLauncherFactory.getFrameworkLauncher();
frameworkLauncher.stop(); //TODO FIXME There is an Equinox memory leak which causes ChildFirstURLClassloader to remain alive
System.setProperty(FrameworkLauncher.START_TIME, String.valueOf(System.currentTimeMillis()));
frameworkLauncher.deploy();
frameworkLauncher.start();

// Carbon is running within an AppServer
FrameworkLauncher frameworkLauncher = FrameworkLauncherFactory.getFrameworkLauncher();

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 9

Suggested change
public void run() {
SecurityManager secMan = System.getSecurityManager();
if (secMan != null) {
secMan.checkPermission(new ManagementPermission("control"));
}
// Carbon is running within an AppServer
FrameworkLauncher frameworkLauncher = FrameworkLauncherFactory.getFrameworkLauncher();
frameworkLauncher.stop(); //TODO FIXME There is an Equinox memory leak which causes ChildFirstURLClassloader to remain alive
System.setProperty(FrameworkLauncher.START_TIME, String.valueOf(System.currentTimeMillis()));
frameworkLauncher.deploy();
frameworkLauncher.start();
// Carbon is running within an AppServer
FrameworkLauncher frameworkLauncher = FrameworkLauncherFactory.getFrameworkLauncher();
public void run() {
// Carbon is running within an AppServer
log.info("Starting framework restart process");
FrameworkLauncher frameworkLauncher = FrameworkLauncherFactory.getFrameworkLauncher();

Comment on lines +29 to +32
frameworkLauncher.stop(); //TODO FIXME There is an Equinox memory leak which causes ChildFirstURLClassloader to remain alive
System.setProperty(FrameworkLauncher.START_TIME, String.valueOf(System.currentTimeMillis()));
frameworkLauncher.deploy();
frameworkLauncher.start();

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 10

Suggested change
frameworkLauncher.stop(); //TODO FIXME There is an Equinox memory leak which causes ChildFirstURLClassloader to remain alive
System.setProperty(FrameworkLauncher.START_TIME, String.valueOf(System.currentTimeMillis()));
frameworkLauncher.deploy();
frameworkLauncher.start();
frameworkLauncher.stop(); //TODO FIXME There is an Equinox memory leak which causes ChildFirstURLClassloader to remain alive
log.debug("Framework stopped successfully");
System.setProperty(FrameworkLauncher.START_TIME, String.valueOf(System.currentTimeMillis()));
frameworkLauncher.deploy();
log.debug("Framework deployed successfully");
frameworkLauncher.start();
log.info("Framework restart completed successfully");

Comment on lines +563 to 565
CarbonCoreDataHolder.getInstance().addServiceRegistration(servletServiceRegistration);

if (filterServiceReference != null) {

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 12

Suggested change
CarbonCoreDataHolder.getInstance().addServiceRegistration(servletServiceRegistration);
if (filterServiceReference != null) {
CarbonCoreDataHolder.getInstance().addServiceRegistration(servletServiceRegistration);
log.info("Successfully registered CarbonServlet at path: " + servicePath + "/*");
if (filterServiceReference != null) {

Comment on lines +176 to +179
public void addServiceRegistration(ServiceRegistration<?> serviceRegistration) {

serviceRegistrations.add(serviceRegistration);
}

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 15

Suggested change
public void addServiceRegistration(ServiceRegistration<?> serviceRegistration) {
serviceRegistrations.add(serviceRegistration);
}
public void addServiceRegistration(ServiceRegistration<?> serviceRegistration) {
log.debug("Adding service registration to CarbonCoreDataHolder");
serviceRegistrations.add(serviceRegistration);
}

Comment on lines +181 to +186
public void unregisterServiceRegistrations() {

for (ServiceRegistration<?> serviceRegistration : serviceRegistrations) {
serviceRegistration.unregister();
}
}

Choose a reason for hiding this comment

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

Log Improvement Suggestion No: 16

Suggested change
public void unregisterServiceRegistrations() {
for (ServiceRegistration<?> serviceRegistration : serviceRegistrations) {
serviceRegistration.unregister();
}
}
public void unregisterServiceRegistrations() {
log.info("Unregistering " + serviceRegistrations.size() + " service registrations");
for (ServiceRegistration<?> serviceRegistration : serviceRegistrations) {
serviceRegistration.unregister();
}
}

Copy link

@wso2-engineering wso2-engineering bot left a comment

Choose a reason for hiding this comment

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

AI Agent Log Improvement Checklist

⚠️ Warning: AI-Generated Review Comments

  • The log-related comments and suggestions in this review were generated by an AI tool to assist with identifying potential improvements. Purpose of reviewing the code for log improvements is to improve the troubleshooting capabilities of our products.
  • Please make sure to manually review and validate all suggestions before applying any changes. Not every code suggestion would make sense or add value to our purpose. Therefore, you have the freedom to decide which of the suggestions are helpful.

✅ Before merging this pull request:

  • Review all AI-generated comments for accuracy and relevance.
  • Complete and verify the table below. We need your feedback to measure the accuracy of these suggestions and the value they add. If you are rejecting a certain code suggestion, please mention the reason briefly in the suggestion for us to capture it.
Comment Accepted (Y/N) Reason
#### Log Improvement Suggestion No: 5
#### Log Improvement Suggestion No: 6
#### Log Improvement Suggestion No: 8
#### Log Improvement Suggestion No: 9
#### Log Improvement Suggestion No: 10
#### Log Improvement Suggestion No: 11
#### Log Improvement Suggestion No: 12
#### Log Improvement Suggestion No: 13
#### Log Improvement Suggestion No: 15
#### Log Improvement Suggestion No: 16
#### Log Improvement Suggestion No: 17
#### Log Improvement Suggestion No: 18
#### Log Improvement Suggestion No: 19

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