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

Some OQL syntax samples in JHAT are broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • None
    • core-svc
    • 8
    • generic
    • generic

      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./)")]

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

              Created:
              Updated:
              Resolved: