Given class:
--------------------------------
package test;

public class Test {
      void test() {}
}
----------------------------------

In bsh, I would hope that I could do something like:
---------------------------------------------
bsh % Test t = new Test();
bsh % package test; // so that I can call default package methods of
Test
bsh % t.test();
----------------------------------------------

Unfortunately, there doesn't seem to be functionality equivalent to the
"package test" statement.

I can workaround this of course by making "test()" public, but I like to
test and keep my methods with the most appropriate access control.

Any help would be appreciated. Thanks

Chuck

Reply via email to