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

compiler fails to check types for expression "(!0)"

XMLWordPrintable

    • 1.0beta
    • sparc
    • solaris_2.4
    • Not verified

      Try compiling this class:

      class Foo {
          public void Foo() {
           if (!0)
      throw new Exception();
          }
      }

      The compiler will get an InternalError due to the expression "if (!0)".

            ahoffsunw Arthur Hoff (Inactive)
            flar Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: