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

java.lang.Bignum.ZERO.pow(-1) does not throw an exception

XMLWordPrintable

    • 1.1
    • sparc
    • solaris_2.5
    • Not verified

      If this behaviour is correct - it should be specified.
      === Here is the minimized test ===
      import java.lang.Bignum;
      class java_lang_Bignum_pow {

        public static void main(String args[]) {
          System.out.println(Bignum.ZERO.pow(-1));
        }
      }
      === Here is the test output ===
      0

            mhapnersunw Mark Hapner (Inactive)
            mgorshen Mikhail Gorshenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: