Issue 12280 - BeanShell/Java runtime refactoring needed after release
Summary: BeanShell/Java runtime refactoring needed after release
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: 644
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: noel.power
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-12 17:48 UTC by noel.power
Modified: 2010-11-11 03:19 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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