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

Java 11 support: JDeps #950

Closed
iluwatar opened this issue Oct 4, 2019 · 2 comments
Closed

Java 11 support: JDeps #950

iluwatar opened this issue Oct 4, 2019 · 2 comments
Assignees
Milestone

Comments

@iluwatar
Copy link
Owner

iluwatar commented Oct 4, 2019

This task is part of the Java 11 transition plan https://github.com/iluwatar/java-design-patterns/wiki/16.-Java-11-Transition

There’s a tool, JDeps, that’s part of the JDK 11 that you can run with a flag of -jdkinternals to check to see if a set of classes is using something it shouldn’t. Run JDeps on the project and its dependencies (see https://blog.codefx.org/tools/jdeps-tutorial-analyze-java-project-dependencies/) and report findings under this issue.

@iluwatar
Copy link
Owner Author

E.g. /usr/lib/jvm/java-11-openjdk-amd64/bin/jdeps -jdkinternals async-method-invocation/target/async-method-invocation-1.22.0-SNAPSHOT.jar

@iluwatar iluwatar added this to the 1.22.0 milestone Oct 11, 2019
@iluwatar
Copy link
Owner Author

Get the list of jars to be inspected
find -name "*-1.22.0-SNAPSHOT.jar" > list.txt

Check the jars with the following scritpt

#!/bin/bash

set -x

cat list.txt | while read line
do
   /usr/lib/jvm/java-11-openjdk-amd64/bin/jdeps -jdkinternals "${line}"
done

No violations were found in the check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant