-
-
Notifications
You must be signed in to change notification settings - Fork 922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some array factories do not work #2749
Comments
kares
added a commit
to kares/jruby
that referenced
this issue
Mar 24, 2015
kares
added a commit
to kares/jruby
that referenced
this issue
Mar 26, 2015
kares
added a commit
to kares/jruby
that referenced
this issue
Mar 26, 2015
* jruby-1_7: (34 commits) test `[].copy_data` addon - also added alias so it can be used with 2 args as well cleanup and add tests from Java array addons ... seems a litle strange move Java array assertions around from equality test should override proxy implemented call() with block as well export void early on with other (primitives) and test it's behaviour DRY-up interface-template impl ... (extracted some anonymous into inner classes) handle nested array.to_java conversion where element is already an array + cleanup implement array.component_type helper on the Ruby side + test how [].to_java works fix array factories `Java::int[1][2].new` as well as `Java::byte.new_array(3)` (jruby#2749) unify and test the no-matching-callable raised error messages / hints handle yet another unnecessary "ambiguous Java methods found" warning add a JI test - setting a security manager created in Ruby use `getArity()` in favor of `getParameterTypes().length` use IntHashMap as callable cache for `__jcreate!` method and share a new-cache helper the intention here was to "use the lowest-arity non-overload" and we're finally there! as (most) Java invokers will not have overrides - they won't use the internal cache ... for loading up JRuby's built-in JI classes this saves up allocating > 2100 maps explicit inspect() method for JavaProxyConstructor + annotate with JRubyClass a working inspect for Java proxy methods empty class array count-- and make sure correct name is annotated with @JRubyClass JavaProxyClass - use toRubyArray + delay resolving constructors + re-arrange internals ... Conflicts: core/pom.xml core/src/main/java/org/jruby/java/invokers/StaticMethodInvoker.java core/src/main/java/org/jruby/javasupport/JavaMethod.java core/src/main/java/org/jruby/javasupport/JavaSupport.java core/src/main/java/org/jruby/javasupport/JavaUtil.java test/test_higher_javasupport.rb
kares
added a commit
to kares/jruby
that referenced
this issue
Mar 26, 2015
* jruby-1_7: (35 commits) align added JavaSupport method name with convention test `[].copy_data` addon - also added alias so it can be used with 2 args as well cleanup and add tests from Java array addons ... seems a litle strange move Java array assertions around from equality test should override proxy implemented call() with block as well export void early on with other (primitives) and test it's behaviour DRY-up interface-template impl ... (extracted some anonymous into inner classes) handle nested array.to_java conversion where element is already an array + cleanup implement array.component_type helper on the Ruby side + test how [].to_java works fix array factories `Java::int[1][2].new` as well as `Java::byte.new_array(3)` (jruby#2749) unify and test the no-matching-callable raised error messages / hints handle yet another unnecessary "ambiguous Java methods found" warning add a JI test - setting a security manager created in Ruby use `getArity()` in favor of `getParameterTypes().length` use IntHashMap as callable cache for `__jcreate!` method and share a new-cache helper the intention here was to "use the lowest-arity non-overload" and we're finally there! as (most) Java invokers will not have overrides - they won't use the internal cache ... for loading up JRuby's built-in JI classes this saves up allocating > 2100 maps explicit inspect() method for JavaProxyConstructor + annotate with JRubyClass a working inspect for Java proxy methods empty class array count-- and make sure correct name is annotated with @JRubyClass ... Conflicts: core/pom.xml core/src/main/java/org/jruby/java/invokers/StaticMethodInvoker.java core/src/main/java/org/jruby/javasupport/JavaMethod.java core/src/main/java/org/jruby/javasupport/JavaSupport.java core/src/main/java/org/jruby/javasupport/JavaUtil.java test/test_higher_javasupport.rb
working since 55a98cc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
new_array
:[]
for multi-dimensional arrays :The text was updated successfully, but these errors were encountered: