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

JDK 1.1 beta javac Compiling class - claims class already exists

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Duplicate
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description

      JDK 1.1 beta javac Compiling class - claims class already exists


      We have classes that compile fine under JDK 1.0.2, but will not under JDK 1.1 beta.



      The following is the relevant portion of the build:


      Making java classes in /export/src/remon_expert/sfbg/src/dnd/tests
      rm -f ../../../src/classes/dndTest/*.class
      javac -g -d ../../../src/classes -classpath .:..:../../classes:/usr/java/lib/classes.zip:/usr/JWS/JDK/classes:/usr/JWS/JDK/lib/classes.zip TestDnD.java TestDnDArea.java TestDnDFrame.java
      TestDnDFrame.java:11: Superclass DnDFrameBase of class TestDnDFrame not found. <======= Yet Another Problem ========================
      public class TestDnDFrame extends DnDFrameBase {
                                        ^
      TestDnDArea.java:12: Interface DnDTarget of class TestDnDArea not found.
      public class TestDnDArea extends Panel implements DnDSource, DnDTarget {
                   ^
      TestDnDArea.java:12: Interface DnDSource of class TestDnDArea not found.
      public class TestDnDArea extends Panel implements DnDSource, DnDTarget {
                                                        ^
      ..//DnDCoordinator.java:22: Class dnd.DnDCoordinator already defined in DnDCoordinator.java. <=========== Here's the problemCompiling class =====
      public class DnDCoordinator {
                   ^
      TestDnD.java:14: Class DnDCoordinator not found in type declaration.
              private DnDCoordinator _coordinator;
                                                 ^
      TestDnD.java:17: Class DnDCoordinator not found in type declaration.
                      _coordinator = new DnDCoordinator();
                                         ^
      6 errors
      *** Error code 1



      See the attachments for the source.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jrose John Rose
              Reporter:
              mabarne Mark Barnes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: