Issue 12280

Summary: BeanShell/Java runtime refactoring needed after release
Product: General Reporter: noel.power
Component: scriptingAssignee: noel.power
Status: CLOSED FIXED QA Contact: issues@framework <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: 644   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---

Description noel.power 2003-03-12 17:48:17 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 ) ).
Comment 1 noel.power 2003-05-08 09:49:48 UTC
Reassign to Noel
Comment 2 noel.power 2003-05-08 10:50:07 UTC
started
Comment 3 noel.power 2003-06-03 10:43:47 UTC
Started
Comment 4 noel.power 2003-06-08 13:29:26 UTC
Fixed
Comment 5 robert.kinsella 2003-06-13 16:34:39 UTC
confirmed fixed, beansheel and java still functioning - i.e. no
regressions with this fix. Sf0.3 rc4

closing issue
Comment 6 inlawcada 2010-11-11 03:19:09 UTC
Created attachment 74122