Re: Loading .java Files

"David Lee" <[email protected]> Sun, 26 Jun 2011 07:28:50 -0400
Newsgroups gmane.comp.java.beanshell.user
Message-ID <[email protected]>
By what mechanism are you "loading" a java file ?
and yes the behavior is right.
If a method is in a class then it's not in the global namespace it's in a
class.


----------------------------------------
David A. Lee
[email protected]
http://www.xmlsh.org


-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Sunday, June 26, 2011 6:50 AM
To: beanshell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Beanshell-users] Loading .java Files

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
_______________________________________________
Beanshell-users mailing list
Beanshell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/beanshell-users


------------------------------------------------------------------------------
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