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

Some OQL syntax samples in JHAT are broken

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: tbd_minor
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      8
    • CPU:
      generic
    • OS:
      generic

      Description

      JHAT has an Object Query Language function which can filter objects in the heap analysis based using the default JavaScript engine. Since the introduction of Nashorn some of the samples in the help page are broken, and the syntax change has potentially broken end user queries too.

      E.g. a sample query from the help page [select filter(heap.classes(), "/java.net./(it.name)")] will fail since this is not supported Nashorn ECMAScript syntax. The correct syntax would be [select filter(heap.classes(), "it.name.match(/java.net./)")]

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              allwin Peter Allwin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: