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

The package program can not import which is not Java class libraly.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • None
    • 1.4.0
    • tools
    • generic
    • generic


      The package program can not import which does not belong to java class libraly.

      Tested with merlin build 1.4beta-B52 on Solaris sparc/x86, RedHatLinux6.2J
      and WindowsNT4.0.
      The phenomenon occur from 1.4beta-B51.

      ---Execution and result.
      %javac TestA.java
      TestA.java:1: '.' expected
      import TestB;
                  ^
      1 error

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


      ======Executed program======

      TestA.java ----------------------
      import TestB;

      public class TestA extends TestB

      {
      };
      ---------------------------------

      TestB.java ---------------------

      import java.awt.*;

      public class TestB extends java.awt.Frame
      {
      };
      ---------------------------------

            gafter Neal Gafter (Inactive)
            kkichisunw Kichi Kichi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: