a instanceof variable is not faulted

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 1.0
    • Affects Version/s: 1.0
    • Component/s: tools
    • 1.0fcs
    • sparc
    • solaris_2.5
    • Not verified

      The following compiles ... surely it should not ...


      class SomeClass
      {
        boolean method(boolean b) {
          return this instanceof b;
        }
      }


      In the instanceof expression, b is assumed to be a type in
      the current package, and not the argument it has been
      declared to be.

            Assignee:
            Frank Yellin (Inactive)
            Reporter:
            Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: