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

sun/tools/hprof/Tracker.java should be deleted

    Details

    • Subcomponent:
    • Resolved In Build:
      b14
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      There are two Tracker.java files:
      1. sun/tools/hprof/Tracker.java
      2. com/sun/demo/jvmti/hprof/Tracker.java

      As result there are 3 Tracker.class files in JDK:

      1. jar -tf jre/lib/rt.jar |grep hprof
        com/sun/demo/jvmti/hprof/Tracker.class
        sun/tools/hprof/Tracker.class

      2. jar -tf lib/tools.jar |grep hprof
        sun/tools/hprof/Tracker.class

      According to src/share/demo/jvmti/hprof/hprof_tracker.h
      com/sun/demo/jvmti/hprof/Tracker.java is actually used.

      # cat src/share/demo/jvmti/hprof/hprof_tracker.h
         46 #define TRACKER_PACKAGE "com/sun/demo/jvmti/hprof"
         47 #define TRACKER_CLASS_NAME TRACKER_PACKAGE "/Tracker"

      -katya

      --------------

      The sun/tools one is a bug, it should have been removed but was left in
      during a transition. There should only be one, in rt.jar.

      -kto

        Attachments

          Activity

            People

            • Assignee:
              ohair Kelly Ohair (Inactive)
              Reporter:
              epavlova Ekaterina Pavlova
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: