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

New Query.isInstanceOf takes String arg but other queries take StringValueExp arg

    Details

    • Subcomponent:
    • Resolved In Build:
      b61
    • CPU:
      generic
    • OS:
      generic

      Description

      The new query Query.IsInstanceOf takes an argument that is a String, representing the class name of interest. However, all other queries with string arguments actually take a StringValueExp. A StringValueExp usually comes from Query.valueOf(string) but can also come from Query.attr and Query.classattr. In future versions of the spec we may add other operations that return StringValueExp (for example substring or concatenation). Thus in addition to the inconsistency there is a loss of functionality from using String rather than StringValueExp here.

        Attachments

          Activity

            People

            • Assignee:
              dfuchs Daniel Fuchs
              Reporter:
              emcmanus Eamonn McManus
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: