Skip to content

embed internal fixes#2630

Closed
kares wants to merge 24 commits intojruby-1_7from
test-embed-internal-fixes
Closed

embed internal fixes#2630
kares wants to merge 24 commits intojruby-1_7from
test-embed-internal-fixes

Conversation

@kares
Copy link
Member

@kares kares commented Feb 27, 2015

while using JRuby's embed APIs in a slightly more advanced scenarios I run into several issues :

  • BiVariableMap is not behaving as a valid Map instance (throwing NPEs on methods if not used "right")
  • ARGV was mean to be kept (as the map is cleared) but unfortunately not correctly

added some tests covering intended (existing and fixed) functionality. trying to understand the details of context providers (and related embed variable impls) was a bit hard to read thus did clean-up some (helped my brain to process the code).

let me know if smt needs more work, targeting jruby-1_7 - there are no (existing) API incompatibilities ...

kares added 24 commits February 27, 2015 21:35
… impls :

- share the logic of obtaining a global runtime
- when global runtime is used make sure we always return the correct instance config!
- introduce & use LocalContext's internal getRuntime for lazy runtime initialization
- support contructors for all providers without the lazy argument
correctly synchronize local context setup/teardown (on our class)!
@kares
Copy link
Member Author

kares commented Apr 14, 2015

rebased and commited on jruby-1_7

@kares kares closed this Apr 14, 2015
@kares kares added this to the JRuby 1.7.20 milestone Apr 14, 2015
@kares kares deleted the test-embed-internal-fixes branch April 28, 2015 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant