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

JDK 1.1 beta javac Compiling class - claims class already exists

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.1
    • tools
    • sparc
    • solaris_2.5.1

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: