-
Notifications
You must be signed in to change notification settings - Fork 174
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
6712: Make agent retransform classes when loaded dynamically #60
Conversation
👋 Welcome back jescolem! A progress list of the required criteria for merging this PR into |
Webrevs
|
@@ -456,6 +456,10 @@ public String toString() { | |||
return classNames; | |||
} | |||
|
|||
public List<String> getClassNames() { | |||
return new ArrayList<>(transformData.keySet()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This data comes from a set. Any reason for it to be made into a list (implies order, where there is none)? Wrap in Collections#unmodifiableSet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct I have fixed this in 6dfb028
@jessyec-s This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type
Since the source branch of this PR was last updated there has been 1 commit pushed to the As you do not have Committer status in this project, an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@thegreystone) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
@jessyec-s |
/sponsor |
Thanks Jessye! :) |
@thegreystone @jessyec-s The following commits have been pushed to master since your change was applied:
Your commit was automatically rebased without conflicts. Pushed as commit 49da554. |
Mailing list message from Marcus Hirt on jmc-dev: Changeset: 49da554 6712: Make agent retransform classes when loaded dynamically Reviewed-by: hirt ! agent/src/main/java/org/openjdk/jmc/agent/Agent.java |
This patch makes the Agent retransform all classes stored in the registry after it is loaded, when it is loaded dynamically. Previously the transformations specified in the xml file path argument were not always being performed in this dynamic case.
Let me know what you think.
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jmc pull/60/head:pull/60
$ git checkout pull/60