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

javadoc unable to find the class unless explicitly imported

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • tools



      Name: vi73552 Date: 02/24/99


      package framework.server;

      /**
       * The way this class documented makes javadoc produce a warning
       * unless the java.io.NotSerializableException is explicitly
       * imported, although it's not used directly in the code.
       *
       * This is undocumented, therefore a bug, not a feature ;-)
       */
      class x extends Exception {

          /**
           * @exception IllegalArgumentException is thrown here to
           * prevent getting {@link java.io.NotSerializableException
           * NotSerializableException} deep down below the framework,
           * beyond the user's control.
           */
          public boolean check() {
              if ( !(something instanceof Serializable) ) {
                  throw IllegalArgumentException();
              }
              return true;
          }
      }
      (Review ID: 53305)
      ======================================================================

            adambalksunw Atul Dambalkar (Inactive)
            vasya Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: