-
Bug
-
Resolution: Fixed
-
P5
-
1.0
-
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.
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.