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 java.base.jmod - Base Module
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module.
JDK 17 Base module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.base.jmod.
JDK 17 Base module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Base module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/lang/constant/ReferenceClassDescImpl.java
/* * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.lang.constant; import java.lang.invoke.MethodHandles; import static java.lang.constant.ConstantUtils.dropFirstAndLastChar; import static java.lang.constant.ConstantUtils.internalToBinary; import static java.util.Objects.requireNonNull; /** * A <a href="package-summary.html#nominal">nominal descriptor</a> for a class, * interface, or array type. A {@linkplain ReferenceClassDescImpl} corresponds to a * {@code Constant_Class_info} entry in the constant pool of a classfile. */ final class ReferenceClassDescImpl implements ClassDesc { private final String descriptor; /** * Creates a {@linkplain ClassDesc} from a descriptor string for a class or * interface type * * @param descriptor a field descriptor string for a class or interface type * @throws IllegalArgumentException if the descriptor string is not a valid * field descriptor string, or does not describe a class or interface type * @jvms 4.3.2 Field Descriptors */ ReferenceClassDescImpl(String descriptor) { requireNonNull(descriptor); int len = ConstantUtils.skipOverFieldSignature(descriptor, 0, descriptor.length(), false); if (len == 0 || len == 1 || len != descriptor.length()) throw new IllegalArgumentException(String.format("not a valid reference type descriptor: %s", descriptor)); this.descriptor = descriptor; } @Override public String descriptorString() { return descriptor; } @Override public Class<?> resolveConstantDesc(MethodHandles.Lookup lookup) throws ReflectiveOperationException { ClassDesc c = this; int depth = ConstantUtils.arrayDepth(descriptorString()); for (int i=0; i<depth; i++) c = c.componentType(); if (c.isPrimitive()) return lookup.findClass(descriptorString()); else { Class<?> clazz = lookup.findClass(internalToBinary(dropFirstAndLastChar(c.descriptorString()))); for (int i = 0; i < depth; i++) clazz = clazz.arrayType(); return clazz; } } /** * Returns {@code true} if this {@linkplain ReferenceClassDescImpl} is * equal to another {@linkplain ReferenceClassDescImpl}. Equality is * determined by the two class descriptors having equal class descriptor * strings. * * @param o the {@code ClassDesc} to compare to this * {@code ClassDesc} * @return {@code true} if the specified {@code ClassDesc} * is equal to this {@code ClassDesc}. */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ClassDesc constant = (ClassDesc) o; return descriptor.equals(constant.descriptorString()); } @Override public int hashCode() { return descriptor.hashCode(); } @Override public String toString() { return String.format("ClassDesc[%s]", displayName()); } }
⏎ java/lang/constant/ReferenceClassDescImpl.java
Or download all of them as a single archive file:
File name: java.base-17.0.5-src.zip File size: 8883851 bytes Release date: 2022-09-13 Download
2023-09-26, ≈177🔥, 1💬
Popular Posts:
maven-embedder-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Embedder module. Apache Maven is a s...
maven-model-builder-3.8. 6.jaris the JAR file for Apache Maven 3.8.6 Model Builder module. Apache Ma...
JUnit Source Code Files are provided in the source package file, junit-4.13.2-sources.jar .You can b...
JDK 17 jdk.internal.vm.ci.jmod is the JMOD file for JDK 17 Internal VM CI module. JDK 17 Internal VM...
How to merge two JAR files with "jar" commands? I am tired of specifying multiple JAR files in the c...