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

Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • None
    • core-libs
    • b04

    Description

      This is a cleanup to convert all casts within instanceof checks and array type access via Array.newInstance().getClass() in java.lang.reflect, java.lang.invoke, and their implementation packages to pattern matching in instanceof and arrayType() calls. A few sites of unchecked casts (e.g. Map to Map<String, String>) are omitted.

      Attachments

        Issue Links

          Activity

            People

              liach Chen Liang
              liach Chen Liang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: