Qualified class instance creation expressions must not be qualified by a
null reference. It appears that the current release (1.3) is not performing the
necessary check. This check is performed by the 1.2 compiler.
Compile and run the following program:
class nullQualifiedNew {
class Nested {
int j;
Nested(int i){ j = i;}
}
public static void main(String[] args) {
nullQualifiedNew e = null;
e.new Nested(6);
}
}
gilad.bracha@eng 2000-02-01
null reference. It appears that the current release (1.3) is not performing the
necessary check. This check is performed by the 1.2 compiler.
Compile and run the following program:
class nullQualifiedNew {
class Nested {
int j;
Nested(int i){ j = i;}
}
public static void main(String[] args) {
nullQualifiedNew e = null;
e.new Nested(6);
}
}
gilad.bracha@eng 2000-02-01