On 23.12.2017 22:47, Rony G. Flatscher wrote:
> While changing BSF4ooRexx to not depend on .local anymore I ran into a
> situation which I do not
> quite understand: it seems that FindClass() is not able to find a class which
> is available in the
> Rexx program via a requires directive, but not in a native function that gets
> invoked from that
> Rexx program. I was expecting that the context of the Rexx program will be
> available to the native
> code with access to all public classes that got required in the Rexx program
> as well.
>
> To sketch the situation:
>
> * the class object BSF is not put into .local anymore
> * "test.rex" requires "BSF.CLS" and uses its routines and classes to create
> proxies to Java
> objects: for such proxies the class BSF or one of its subclasses like
> BSF_REFERENCE gets employed
> * after creating references to Java objects a native call from "test.rex"
> occurs: in the native
> code the Rexx arguments get tested whether they are instances of BSF
> using IsOfType(), which
> does not work; studying the documentation of IsOfType() I turned to
> FindClass() to see whether
> the class BSF gets found and it does not.
>
> Does FindClass() look up all of the Rexx packages that got required up to
> that point in the Rexx
> program that is the source of the native call or only .local and .environment?
>
> If not, is there another native function which would search the public
> classes in the package no
> matter which context interface one uses like FindClass(), i.e. theThread
> Context Interface, Method
> Context Interface, Call Context Interface, or the Exit Context Interface?
>
> ---rony
>
Hmm, found FindPackageClass() which implies that FindClass() does not look up
the package.
---rony
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel