Loading .java Files

<[email protected]> Sun, 26 Jun 2011 12:50:10 +0200
Newsgroups gmane.comp.java.beanshell.user
Message-ID <E27CD77D44744BA88AF8BF593CB13AD5@msrvcn04>
Hi,

when I load a complete .java File, the global namespace has no methods:

public class Foo() {
  void bar() {
    //
  }
}

When I load this, the namespace has the method bar():

//public class Foo() {
  void bar() {
    //
  }
//}

Is this a bug or by design?

Thank you


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2