Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8268980

[lword] Fix Class::descriptorString to return L-descriptor for primitive ref type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: core-libs
    • Labels:

      Description

      --- a/src/java.base/share/classes/java/lang/Class.java
      +++ b/src/java.base/share/classes/java/lang/Class.java
      @@ -4518,7 +4518,7 @@ public final class Class<T> implements java.io.Serializable,
               if (isArray()) {
                   return "[" + componentType.descriptorString();
               }
      - char typeDesc = isPrimitiveClass() ? 'Q' : 'L';
      + char typeDesc = isValueType() ? 'Q' : 'L';
               if (isHidden()) {
                   String name = getName();
                   int index = name.indexOf('/');

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mchung Mandy Chung
              Reporter:
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: