River
  1. River
  2. RIVER-82

ClassDep generates duplicate output lines

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: jtsk_2.1
    • Fix Version/s: River_2.1.2
    • Component/s: com_sun_jini_tool
    • Labels:
      None
    • Bugtraq ID:
      6392596

      Description

      Bugtraq ID 6392596

      The classdep utility generates duplicate output lines when
      run under Java5. In particular, this is seen for enum classes
      and for inner classes named on the command line.

      Consider a java source file (in src/foo/Bar.java):

      package foo;
      public class Bar {
      private static enum Contents

      { RECORDS, TASKS }

      public class Inner { }
      }

      Run:

      rm -rf classes
      mkdir classes
      javac -d classes src/foo/Bar.java
      java -cp /vob/jive/lib/tools.jar:$JAVA_HOME/lib/tools.jar \
      com.sun.jini.tool.ClassDep \
      -cp classes -files -in foo foo.Bar foo.Bar\$Inner

      Result:

      foo/Bar.class
      foo/Bar$Contents.class
      foo/Bar$Contents.class
      foo/Bar$Inner.class
      foo/Bar$Inner.class

      Note the two duplicate lines.

      Using jdk1.5.0_06.

        Issue Links

          Activity

          Fred Oliver created issue -
          Mark Brouwer made changes -
          Field Original Value New Value
          Link This issue duplicates RIVER-78 [ RIVER-78 ]
          Mark Brouwer made changes -
          Assignee Mark Brouwer [ marbro ]
          Mark Brouwer made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Mark Brouwer made changes -
          Fix Version/s AR2 [ 12312604 ]
          Mark Brouwer made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          Peter Firmstone made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Mark Brouwer
              Reporter:
              Fred Oliver
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development