Home  >  Article  >  Java  >  What is the purpose of jdeprscan tool in Java 9?

What is the purpose of jdeprscan tool in Java 9?

王林
王林forward
2023-08-29 23:53:02639browse

jdeprscan工具在Java 9中的用途是什么?

jdeprscan Tool can be used for static analysis of classes, files> and folders to see if there are API elements marked deprecated. This tool only detects projects marked as deprecated in Java SE, and will not detect projects marked as deprecated in other libraries. All classes on which the checked class or set of classes depend must be available when compiling or running a class. If a dependent class is missing, this tool provides a list of unavailable classes preceded by the error: Class

not found.

The following is the syntax of jdeprscan tool

.

Syntax

<strong>jdeprscan [options] {dir | jar | class}</strong>

"jmods\jdk.jdeps" can support the "jdeprscan" command.jmod " module file, which can be linked to the "lib\modules" JImage file in JDK 9, 10 and 11

. Below, we jdeprscanTool provides different options:
<strong>Options:
       --class-path PATH
       --for-removal
       --full-version
-? -h  --help
-l     --list
       --release 6|7|8|9|10|11
-v     --verbose
       --version</strong>
###

The above is the detailed content of What is the purpose of jdeprscan tool in Java 9?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete