Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-10
-
None
-
None
Description
The following class:
class test {
Integer x = null
static void main(String[] args)
{ // Can't access non-static class member is static funciton x = new Integer(5) }}
Throws a NullPointerException, rather than something indicating that we're trying to access a non-static member in a static function. Or should it create a local variable?