2006-01-25, ---rgf

Testcase to demonstrate the OOo Scripting Framework hanging, if using a class with UNO reflection via Java.

Setting up:

1) unzip the archive

2) copy "oorexx-uno.jar" to "%OOo-Home%\program\classes"

   ... contains the class "org.oorexx.uno.RgfReflectUNO" together with the source

Testing:

1) Commandline, enter:

   java TestRgfReflectUNO

   ... will output type name and definition of a fuly qualified UNO IDL string denoting
       "com.sun.star.resource.XResourceBundle", the UNO context object and the
       "XMultiComponentFactory" UNO service object

   ---> works!

2) OOo 2.0: Executing a macro, accessing RgfReflectUNO --> hangs

   - load swriter, choose "Tools->Macros->Organize Macros->BeanShell

   - create a new macro and replace the content with the code supplied in the accompanying
     "beanShellMacro.bsh"

   - run the macro

   - it can access a public static field of the class ("rgfReflectUNO.version"), but

   ---> does not return from invoking RgfReflectUNO.getTypeName(...) !

        - Scripting debug window cannot be closed

        - One needs to kill "soffice.bin" with the task manager in order to get rid of the
          scripting debug window and the associate instance of Java


If any further infos are needed please contact me at <rony.flatscher@wu-wien.ac.at>
