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

Implement java.lang.Access.invalidatePackageAccessCache() and cleanup #2854

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

pdbain-ibm
Copy link
Contributor

Remove incorrect comments and annotations about obsolete methods.
Implement invalidatePackageAccessCache().

Fixes #2234.

Signed-off-by: Peter Bain peter_bain@ca.ibm.com

@pshipton
Copy link
Member

The PR and commit title is a little misleading, please change it to something like "Implement java.lang.Access.invalidatePackageAccessCache() and cleanup".

@@ -232,8 +232,6 @@ public ServicesCatalog createOrGetServicesCatalog(ClassLoader classLoader) {
return classLoader.createOrGetServicesCatalog();
}

/* removed in build 160 */
@Deprecated
public ServicesCatalog getServicesCatalog(ClassLoader classLoader) {
Copy link
Member

@pshipton pshipton Sep 13, 2018

Choose a reason for hiding this comment

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

I think this API is actually unused in the latest? As only getServicesCatalog(ModuleLayer) is used.

@pdbain-ibm pdbain-ibm changed the title Clean up java.lang.Access Implement java.lang.Access.invalidatePackageAccessCache() and cleanup Sep 19, 2018
@pdbain-ibm pdbain-ibm force-pushed the cleanup branch 2 times, most recently from 862db37 to 77fe252 Compare September 19, 2018 15:06
@pdbain-ibm
Copy link
Contributor Author

Title changed and getServicesCatalog(ClassLoader classLoader) removed.

@pshipton
Copy link
Member

Hmm, I wasn't saying that getServicesCatalog(ClassLoader classLoader) isn't used anywhere, just that it isn't used in the latest and should remain deprecated.

@pshipton
Copy link
Member

The title of the commit itself was not changed.

@pshipton
Copy link
Member

and should remain deprecated.

or use preprocessor tags to remove it from later releases.

@pdbain-ibm
Copy link
Contributor Author

getServicesCatalog() isn't used in Java 8, 10, or 11. It might be used in Java 9 B148, so I will JPP it out.

Remove misleading comments and annotations about obsolete methods.
Implement invalidatePackageAccessCache().
Remove getServicesCatalog(ClassLoader classLoader) from Java 10 and later.

Fixes eclipse-openj9#2234.

Signed-off-by: Peter Bain <peter_bain@ca.ibm.com>
@pdbain-ibm
Copy link
Contributor Author

Commit comment updated, preprocessor directive added.

@pshipton
Copy link
Member

jenkins test sanity zlinux jdk10

@pshipton pshipton merged commit 70443a8 into eclipse-openj9:master Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants