JRE 8 rt.jar - com.* Package Source Code

JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime environment included in JDK 8. JRE 8 rt.jar libraries are divided into 6 packages:

com.* - Internal Oracle and Sun Microsystems libraries
java.* - Standard Java API libraries.
javax.* - Extended Java API libraries.
jdk.* -  JDK supporting libraries.
org.* - Third party libraries.
sun.* - Old libraries developed by Sun Microsystems.

JAR File Information:

Directory of C:\fyicenter\jdk-1.8.0_191\jre\lib
      63,596,151 rt.jar

Here is the list of Java classes of the com.* package in JRE 1.8.0_191 rt.jar. Java source codes are also provided.

✍: FYIcenter

com/sun/corba/se/impl/ior/IORTypeCheckRegistryImpl.java

/*
 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package com.sun.corba.se.impl.ior;

import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

import com.sun.corba.se.impl.orbutil.ORBUtility;
import com.sun.corba.se.spi.ior.IORTypeCheckRegistry;
import com.sun.corba.se.spi.orb.ORB;

public class IORTypeCheckRegistryImpl implements IORTypeCheckRegistry {

    private final Set<String> iorTypeNames;
    private static final Set<String> builtinIorTypeNames;
    private ORB theOrb;

    static {
        builtinIorTypeNames = initBuiltinIorTypeNames();
    }

    public IORTypeCheckRegistryImpl(String filterProperties, ORB orb) {
        theOrb = orb;
        iorTypeNames = parseIorClassNameList(filterProperties);
    }

    /*
     *
     * A note on the validation flow:
     * 1. against the filter class name list
     * 2. against the builtin class name list
     */
    @Override
    public boolean isValidIORType(String iorClassName) {
        dprintTransport(".isValidIORType : iorClassName == " + iorClassName);
        return validateIorTypeByName(iorClassName);
    }


    private boolean validateIorTypeByName(String iorClassName) {
        dprintTransport(".validateIorTypeByName : iorClassName == " + iorClassName);
        boolean isValidType;

        isValidType = checkIorTypeNames(iorClassName);

        if (!isValidType) {
            isValidType = checkBuiltinClassNames(iorClassName);
        }

        dprintTransport(".validateIorTypeByName : isValidType == " + isValidType);
        return isValidType;
    }


    /*
     * check if the class name corresponding to an IOR Type name
     * is in the ior class name list as generated from the filter property.
     * So if the IOR type is recorded in the registry then allow the creation of the
     * stub factory and let it resolve and load the class. That is if current
     * type check deliberation permits.
     * IOR Type names are configured by the filter property
     */
    private boolean checkIorTypeNames(
            String theIorClassName) {
        return (iorTypeNames != null) && (iorTypeNames.contains(theIorClassName));
    }

    /*
     * Check the IOR interface class name against the set of
     * class names that correspond to the builtin JDK IDL stub classes.
     */
    private boolean checkBuiltinClassNames(
            String theIorClassName) {
        return builtinIorTypeNames.contains(theIorClassName);
    }

    private Set<String> parseIorClassNameList(String filterProperty) {
        Set<String> _iorTypeNames = null;
        if (filterProperty != null) {
            String[] tempIorClassNames = filterProperty.split(";");
            _iorTypeNames = Collections.unmodifiableSet(new HashSet<>(Arrays
                    .asList(tempIorClassNames)));
            if (theOrb.orbInitDebugFlag) {
                dprintConfiguredIorTypeNames();
            }
        }
        return _iorTypeNames;
    }

    private static Set<String> initBuiltinIorTypeNames() {
        Set<Class<?>> builtInCorbaStubTypes = initBuiltInCorbaStubTypes();
        String[] tempBuiltinIorTypeNames = new String[builtInCorbaStubTypes.size()];
        int i = 0;
        for (Class<?> _stubClass : builtInCorbaStubTypes) {
            tempBuiltinIorTypeNames[i++] = _stubClass.getName();
        }
        return Collections.unmodifiableSet(new HashSet<>(Arrays
                .asList(tempBuiltinIorTypeNames)));
    }

    private static Set<Class<?>> initBuiltInCorbaStubTypes() {
        Class<?> tempBuiltinCorbaStubTypes[] = {
            com.sun.corba.se.spi.activation.Activator.class,
            com.sun.corba.se.spi.activation._ActivatorStub.class,
            com.sun.corba.se.spi.activation._InitialNameServiceStub.class,
            com.sun.corba.se.spi.activation._LocatorStub.class,
            com.sun.corba.se.spi.activation._RepositoryStub.class,
            com.sun.corba.se.spi.activation._ServerManagerStub.class,
            com.sun.corba.se.spi.activation._ServerStub.class,
            org.omg.CosNaming.BindingIterator.class,
            org.omg.CosNaming._BindingIteratorStub.class,
            org.omg.CosNaming.NamingContextExt.class,
            org.omg.CosNaming._NamingContextExtStub.class,
            org.omg.CosNaming.NamingContext.class,
            org.omg.CosNaming._NamingContextStub.class,
            org.omg.DynamicAny.DynAnyFactory.class,
            org.omg.DynamicAny._DynAnyFactoryStub.class,
            org.omg.DynamicAny.DynAny.class,
            org.omg.DynamicAny._DynAnyStub.class,
            org.omg.DynamicAny.DynArray.class,
            org.omg.DynamicAny._DynArrayStub.class,
            org.omg.DynamicAny.DynEnum.class,
            org.omg.DynamicAny._DynEnumStub.class,
            org.omg.DynamicAny.DynFixed.class,
            org.omg.DynamicAny._DynFixedStub.class,
            org.omg.DynamicAny.DynSequence.class,
            org.omg.DynamicAny._DynSequenceStub.class,
            org.omg.DynamicAny.DynStruct.class,
            org.omg.DynamicAny._DynStructStub.class,
            org.omg.DynamicAny.DynUnion.class,
            org.omg.DynamicAny._DynUnionStub.class,
            org.omg.DynamicAny._DynValueStub.class,
            org.omg.DynamicAny.DynValue.class,
            org.omg.PortableServer.ServantActivator.class,
            org.omg.PortableServer._ServantActivatorStub.class,
            org.omg.PortableServer.ServantLocator.class,
            org.omg.PortableServer._ServantLocatorStub.class};
        return new HashSet<>(
                Arrays.asList(tempBuiltinCorbaStubTypes));
    }

    private void dprintConfiguredIorTypeNames() {
        if (iorTypeNames != null) {
            for (String iorTypeName : iorTypeNames) {
                ORBUtility.dprint(this, ".dprintConfiguredIorTypeNames: " + iorTypeName);
            }
        }
    }

    private void dprintTransport(String msg) {
        if (theOrb.transportDebugFlag) {
            ORBUtility.dprint(this, msg);
        }
    }
}

com/sun/corba/se/impl/ior/IORTypeCheckRegistryImpl.java

 

Or download all of them as a single archive file:

File name: jre-rt-com-1.8.0_191-src.zip
File size: 8099783 bytes
Release date: 2018-10-28
Download 

 

Backup JDK 8 Installation Directory

JRE 8 rt.jar - org.* Package Source Code

Download and Use JDK 8

⇑⇑ FAQ for JDK (Java Development Kit)

2023-02-07, 255702👍, 3💬