Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JDK 17 jdk.jdeps.jmod - JDeps Tool
JDK 17 jdk.jdeps.jmod is the JMOD file for JDK 17 JDeps tool,
which can be invoked by the "jdeps" command.
JDK 17 JDeps tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jdeps.jmod.
JDK 17 JDeps tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JDeps tool source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jdeps.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/tools/jdeprscan/DeprDB.java
/*
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.tools.jdeprscan;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Formatter;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import javax.lang.model.element.ElementKind;
/**
* A database of deprecations (APIs declared to be deprecated),
* loaded from a JDK or from a class library.
*/
public class DeprDB {
/**
* Deprecated types.
* A map from deprecated type names to DeprData values.
* Types include classes, interfaces, enums, and annotation types.
*/
final Map<String, DeprData> types = new HashMap<>();
/**
* Deprecated methods. Key is type name, value is map from method
* signatures in the form "methodname(parms)ret" to DeprData value.
*/
final Map<String, Map<String, DeprData>> methods = new HashMap<>();
/**
* Deprecated fields. Key is type name, value is map from field name
* to forRemoval value.
*/
final Map<String, Map<String, DeprData>> fields = new HashMap<>();
/**
* Set of valid ElementKind strings.
*/
static final Set<String> validElementKinds =
Set.of(Arrays.stream(ElementKind.values())
.map(ElementKind::toString)
.toArray(String[]::new));
private DeprDB() { }
public static List<DeprData> loadFromFile(String filename) throws IOException {
List<DeprData> list = new ArrayList<>();
exit:
try (final BufferedReader br = Files.newBufferedReader(Paths.get(filename))) {
String line = br.readLine();
if (line == null || !line.equals("#jdepr1")) {
System.out.printf("ERROR: invalid first line %s%n", line);
break exit;
}
while ((line = br.readLine()) != null) {
if (line.startsWith("#")) {
continue;
}
List<String> tokens = CSV.split(line);
if (tokens.size() != 5) {
System.out.printf("ERROR: %s%n", line);
continue;
}
// kind,typeName,descOrName,since,forRemoval
String kindStr = tokens.get(0);
String type = tokens.get(1);
String detail = tokens.get(2);
String since = tokens.get(3);
boolean forRemoval = Boolean.parseBoolean(tokens.get(4));
ElementKind kind;
if (validElementKinds.contains(kindStr)) {
kind = ElementKind.valueOf(kindStr);
} else {
System.out.printf("ERROR: invalid element kind %s%n", kindStr);
continue;
}
DeprData data = new DeprData(kind, /*TypeElement*/null, type, detail, since, forRemoval);
list.add(data);
}
}
return list;
}
public static DeprDB loadFromList(List<DeprData> deprList) {
DeprDB db = new DeprDB();
for (DeprData dd : deprList) {
switch (dd.kind) {
case CLASS:
case INTERFACE:
case ENUM:
case ANNOTATION_TYPE:
db.types.put(dd.typeName, dd);
break;
case METHOD:
case CONSTRUCTOR:
db.methods.computeIfAbsent(dd.typeName, k -> new HashMap<>())
.put(dd.nameSig, dd);
break;
case ENUM_CONSTANT:
case FIELD:
db.fields.computeIfAbsent(dd.typeName, k -> new HashMap<>())
.put(dd.nameSig, dd);
break;
}
}
return db;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
Formatter f = new Formatter(sb, Locale.US);
f.format("=== Types ===%n");
f.format("%s%n", types.toString());
f.format("=== Methods ===%n");
f.format("%s%n", methods.toString());
f.format("=== Fields ===%n");
f.format("%s%n", fields.toString());
return sb.toString();
}
public DeprData getTypeDeprecated(String typeName) {
return types.get(typeName);
}
public DeprData getMethodDeprecated(String typeName, String methodName, String type) {
Map<String, DeprData> m = methods.get(typeName);
if (m == null) {
return null;
}
return m.get(methodName + type);
}
public DeprData getFieldDeprecated(String typeName, String fieldName) {
Map<String, DeprData> f = fields.get(typeName);
if (f == null) {
return null;
}
return f.get(fieldName);
}
}
⏎ com/sun/tools/jdeprscan/DeprDB.java
Or download all of them as a single archive file:
File name: jdk.jdeps-17.0.5-src.zip File size: 258425 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jdi.jmod - JDI Tool
2023-04-17, ≈22🔥, 0💬
Popular Posts:
JDK 17 jdk.javadoc.jmod is the JMOD file for JDK 17 Java Document tool, which can be invoked by the ...
What is the jaxp\SourceValidator.jav aprovided in the Apache Xerces package? I have Apache Xerces 2....
JRE 8 deploy.jar is the JAR file for JRE 8 Java Control Panel and other deploy tools. JRE (Java Runt...
What Is wstx-asl-3.2.8.jar? wstx-asl-3.2.8.jar is JAR file for the ASL component of Woodstox 3.2.8. ...
commons-net.jar is the bytecode of Apache Commons Net library, which implements the client side of m...