Created
March 9, 2019 00:23
-
-
Save headius/39da2bf726eefac6b9a764a213f3e818 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) class in default package can be opened using Java::Foo syntax | |
Failure/Error: group {obj.pretty_print self} | |
ArgumentError: | |
Java package 'default.package.class.new.foo' does not have a method `pretty_print' with 1 argument | |
# org/jruby/javasupport/JavaPackage.java:258:in `method_missing' | |
# ./lib/ruby/stdlib/pp.rb:161:in `block in pp' | |
# ./lib/ruby/stdlib/prettyprint.rb:253:in `block in group' | |
# ./lib/ruby/stdlib/prettyprint.rb:280:in `nest' | |
# ./lib/ruby/stdlib/prettyprint.rb:252:in `block in group' | |
# ./lib/ruby/stdlib/prettyprint.rb:265:in `group_sub' | |
# ./lib/ruby/stdlib/prettyprint.rb:251:in `group' | |
# ./lib/ruby/stdlib/pp.rb:161:in `pp' | |
# ./lib/ruby/stdlib/pp.rb:73:in `block in pp' | |
# ./lib/ruby/stdlib/pp.rb:120:in `guard_inspect_key' | |
# ./lib/ruby/stdlib/pp.rb:73:in `pp' | |
# ./lib/ruby/gems/shared/gems/rspec-support-3.8.0/lib/rspec/support/differ.rb:188:in `object_to_string' | |
# ./lib/ruby/gems/shared/gems/rspec-support-3.8.0/lib/rspec/support/differ.rb:58:in `diff_as_object' | |
# ./lib/ruby/gems/shared/gems/rspec-support-3.8.0/lib/rspec/support/differ.rb:20:in `diff' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/matchers/expecteds_for_multiple_diffs.rb:66:in `block in diffs' | |
# org/jruby/RubyArray.java:2577:in `map' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/matchers/expecteds_for_multiple_diffs.rb:65:in `diffs' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/matchers/expecteds_for_multiple_diffs.rb:48:in `message_with_diff' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/expectations/fail_with.rb:33:in `fail_with' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/expectations/handler.rb:38:in `handle_failure' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/expectations/handler.rb:27:in `with_matcher' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/expectations/handler.rb:48:in `handle_matcher' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/expectations/expectation_target.rb:65:in `to' | |
# ./spec/java_integration/packages/access_spec.rb:98:in `block in <main>' | |
# org/jruby/RubyBasicObject.java:2681:in `instance_exec' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:254:in `block in run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb:464:in `block in run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb:602:in `run_around_example_hooks_for' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb:464:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:457:in `with_around_example_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:251:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb:629:in `block in run_examples' | |
# org/jruby/RubyArray.java:2577:in `map' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb:625:in `run_examples' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb:591:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:116:in `block in run_specs' | |
# org/jruby/RubyArray.java:2577:in `map' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:116:in `block in run_specs' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1989:in `with_suite_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:111:in `block in run_specs' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:74:in `report' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:110:in `run_specs' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:87:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:71:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:45:in `invoke' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/exe/rspec:4:in `<main>' | |
2) java package (and class) have name | |
Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure } | |
expected: "Java::Default::DefaultPackageClass" | |
got: "Java::DefaultPackageClass" | |
(compared using eql?) | |
# ./lib/ruby/gems/shared/gems/rspec-support-3.8.0/lib/rspec/support.rb:97:in `block in Support' | |
# ./lib/ruby/gems/shared/gems/rspec-support-3.8.0/lib/rspec/support.rb:106:in `notify_failure' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/expectations/fail_with.rb:35:in `fail_with' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/expectations/handler.rb:38:in `handle_failure' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/expectations/handler.rb:27:in `with_matcher' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/expectations/handler.rb:48:in `handle_matcher' | |
# ./lib/ruby/gems/shared/gems/rspec-expectations-3.8.2/lib/rspec/expectations/expectation_target.rb:65:in `to' | |
# ./spec/java_integration/packages/name_spec.rb:20:in `block in <main>' | |
# org/jruby/RubyBasicObject.java:2681:in `instance_exec' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:254:in `block in run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb:464:in `block in run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb:602:in `run_around_example_hooks_for' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb:464:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:457:in `with_around_example_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:251:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb:629:in `block in run_examples' | |
# org/jruby/RubyArray.java:2577:in `map' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb:625:in `run_examples' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb:591:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:116:in `block in run_specs' | |
# org/jruby/RubyArray.java:2577:in `map' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:116:in `block in run_specs' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1989:in `with_suite_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:111:in `block in run_specs' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:74:in `report' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:110:in `run_specs' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:87:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:71:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:45:in `invoke' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/exe/rspec:4:in `<main>' | |
3) Kernel#java_import given a default-package class imports the class appropriately | |
Failure/Error: java_import Java::DefaultPackageClass | |
ArgumentError: | |
not a Java class or interface: default.package.class | |
# uri:classloader:/jruby/java/core_ext/object.rb:49:in `block in java_import' | |
# org/jruby/RubyArray.java:2577:in `map' | |
# uri:classloader:/jruby/java/core_ext/object.rb:37:in `java_import' | |
# ./spec/java_integration/types/retrieval_spec.rb:11:in `block in <main>' | |
# org/jruby/RubyModule.java:3278:in `module_exec' | |
# org/jruby/RubyModule.java:2712:in `initialize' | |
# ./spec/java_integration/types/retrieval_spec.rb:10:in `block in <main>' | |
# org/jruby/RubyBasicObject.java:2681:in `instance_exec' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:254:in `block in run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:457:in `block in with_around_example_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb:464:in `block in run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb:602:in `run_around_example_hooks_for' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb:464:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:457:in `with_around_example_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example.rb:251:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb:629:in `block in run_examples' | |
# org/jruby/RubyArray.java:2577:in `map' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb:625:in `run_examples' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb:591:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb:592:in `block in run' | |
# org/jruby/RubyArray.java:2577:in `map' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb:592:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:116:in `block in run_specs' | |
# org/jruby/RubyArray.java:2577:in `map' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:116:in `block in run_specs' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1989:in `with_suite_hooks' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:111:in `block in run_specs' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb:74:in `report' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:110:in `run_specs' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:87:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:71:in `run' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:45:in `invoke' | |
# ./lib/ruby/gems/shared/gems/rspec-core-3.8.0/exe/rspec:4:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment