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

Fix: evict cached MBean when bean descriptor content changed to ensure ManagedBean#getMBeanInfo result is correct. #755

Closed
wants to merge 2 commits into from

Conversation

Chenjp
Copy link
Contributor

@Chenjp Chenjp commented Sep 19, 2024

  1. ensure evict cache for each modification like returnType, name, desc, addAttribute etc.
  2. code refactoring.
  3. testcase added.

…nType etc.

1. Fix force expire cache XxxInfo#setName, setType, setDescription, setReturnType etc.
2. Code refactoring.
@markt-asf
Copy link
Contributor

Why would MBean info change at runtime? The MBeans pretty much all represent Tomcat internals and they don't change structure at runtime. I'm not seeing the use case for this.

@rmaucher
Copy link
Contributor

In theory this is an upstream issue (commons-modeler), however it is no longer maintained.

@Chenjp
Copy link
Contributor Author

Chenjp commented Sep 23, 2024

In theory this is an upstream issue (commons-modeler), however it is no longer maintained.

got it.

@markt-asf
Copy link
Contributor

Unless a valid use case is provided for this change, this PR will be closed without being applied.

@Chenjp
Copy link
Contributor Author

Chenjp commented Oct 14, 2024

No valid use case.

@Chenjp Chenjp closed this Oct 14, 2024
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