< prev index next >

src/java.base/share/classes/jdk/internal/constant/ConstantUtils.java

Print this page
@@ -62,11 +62,11 @@
       * ClassDesc#of(String)}.
       *
       * @param binaryName a binary name
       */
      public static ClassDesc binaryNameToDesc(String binaryName) {
-         return ReferenceClassDescImpl.ofValidated("L" + binaryToInternal(binaryName) + ";");
+         return ClassDescImpl.ofValidated("L" + binaryToInternal(binaryName) + ";");
      }
  
      /**
       * Creates a ClassDesc from a Class object, requires that this class
       * can always be described nominally, i.e. this class is not a

@@ -83,11 +83,11 @@
      /**
       * Creates a ClassDesc from a Class object representing a non-hidden
       * class or interface or an array type with a non-hidden component type.
       */
      public static ClassDesc referenceClassDesc(Class<?> type) {
-         return ReferenceClassDescImpl.ofValidated(type.descriptorString());
+         return ClassDescImpl.ofValidated(type.descriptorString());
      }
  
      /**
       * Creates a MethodTypeDesc from a MethodType object, requires that
       * the type can be described nominally, i.e. all of its return

@@ -307,11 +307,11 @@
      private static ClassDesc resolveClassDesc(String descriptor, int start, int len) {
          if (len == 1) {
              return Wrapper.forPrimitiveType(descriptor.charAt(start)).basicClassDescriptor();
          }
          // Pre-verified in parseMethodDescriptor; avoid redundant verification
-         return ReferenceClassDescImpl.ofValidated(descriptor.substring(start, start + len));
+         return ClassDescImpl.ofValidated(descriptor.substring(start, start + len));
      }
  
      private static final char JVM_SIGNATURE_ARRAY = '[';
      private static final char JVM_SIGNATURE_BYTE = 'B';
      private static final char JVM_SIGNATURE_CHAR = 'C';
< prev index next >