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

javac does not diagnose bad classpath

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.1, 1.1.1, 1.1.5
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic, x86, sparc
    • OS:
      solaris_2.5.1, windows_95

      Description

      [1/7/97 jrose]
      See the attachment dnd.instructions.mai for instructions on how to reproduce
      this bug.
      [end jrose]


      JDK 1.1 beta javac fails to find imported classes.

      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. <======= Here's the 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. <=========== This is yet another bug!!! =====
      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:
              wmaddoxsunw William Maddox (Inactive)
              Reporter:
              mabarne Mark Barnes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: