You can call enclosing method from within that method's inner class, it is legal, your code will compile. But as you know we cannot access local variables of enclosing method from method-local inner class then why you need to invoke that method from the class.
When I ran this program I got output like this. "enclosing method". -Looks like code doesn't go into the method-local inner class. That's why it doesn't print "inner class method".