Apache OpenOffice (AOO) Bugzilla – Issue 12280
BeanShell/Java runtime refactoring needed after release
Last modified: 2010-11-11 03:19:09 UTC
Currently classpaths ( & path to beanshell script ) use both vnd...pkg and system dependant file paths. Furthermore urls and system classpaths are interspersed and specialised conversions happen ad hoc in the code. This is a legacy issue from transition from DefaultScriptClassLoader to using URLClassLoader with URLStreamHandler. Both runtimes need to be refactored to use urls only, no need to use system dependant classpaths and no need for special switching. Use of PathUtils.decodeParcelURI should be removed it is will not be necessary if the above approach is used/ ClassLoaderFactory should be modified to take urls, buildClassPath should build class paths with urls constructed appropriately ie. ordinary file urls and vnd urls ( these urls are constructed with URLStreamHandler as paramater ) In ScriptRuntimeForBeanshell switching code to use either m_interpreter.eval(..) ir m_interpreter.source(..) should be removed, m_interpreter.eval(..) should be used instead ( stream paramater can be obtained from url ( either file or vnd type ) ).
Reassign to Noel
started
Started
Fixed
confirmed fixed, beansheel and java still functioning - i.e. no regressions with this fix. Sf0.3 rc4 closing issue
Created attachment 74122