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

jhat javascript in hat.js references non-existent Java API in Enumeration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • tbd
    • 8, 9
    • core-svc
    • generic
    • linux

      I tried to write some OQL code and hit a problem when I called heap.forEachObject. Seems that the code in hat.js calls clazz.getInstances() which is in com.sun.tools.hat.internal.model.JavaClass and it returns an Enumeration. Code then tries to reference hasNextElements() in the Enumeration but it should call hasMoreElements(); there is no hasNextElements()

            Unassigned Unassigned
            bpittore Bill Pittore (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: