-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* jruby-1_7: (27 commits) meh, use the included hook instead to get a simple test skip on --1.8 mode some more --1.8 skip fixes (4 less future surprises) test skip 1.8.7 test-unit compatibility adding a skip-ed test-case for callin abstract (Ruby impl) method in constructor less intermediate strings on proxy class name generation some notes on Java proxy invocation handler class hierarchy + un-used import make generated Java proxy class fields final include_package spec no longer pending [ji] include package should work with a package instance (just like import) java_alias should not fail when no include_package called previously add a possible TODO note for proc-to-iface dispatch Fix VERSION so jruby-jars builds find the right jars. Update joda time to 2.8.2. Fixes #3286. Encoding of symbol literals does not respect the encoding of the source file (1.9 edition) Move psych to 1.9 lib so only 1.9 and 2.0 modes can see it. backport #3271, #3211, #3221 [ji] improved more-specific type matching when matching Java methods another (pending) Java 8 JI spec - hitting the wall with Predicate#test(arg1) Exclude odd DateTime roundtrip failure in Psych. Update psych+tests to 2.0.15. ... Conflicts: .travis.yml VERSION core/pom.xml core/src/main/java/org/jruby/ext/bigdecimal/RubyBigDecimal.java core/src/main/java/org/jruby/ext/psych/PsychLibrary.java core/src/main/java/org/jruby/ext/psych/PsychParser.java core/src/main/java/org/jruby/ext/psych/PsychToRuby.java core/src/main/java/org/jruby/parser/ParserSupport.java core/src/main/java/org/jruby/parser/Ruby19Parser.java core/src/main/java/org/jruby/parser/Ruby19Parser.y docs/man/pom.xml docs/pom.xml ext/pom.xml ext/readline/pom.xml ext/ripper/pom.xml lib/pom.rb lib/pom.xml lib/ruby/1.8/bigdecimal/math.rb lib/ruby/1.9/bigdecimal/math.rb lib/ruby/1.9/psych.rb lib/ruby/1.9/psych/coder.rb lib/ruby/1.9/psych/core_ext.rb lib/ruby/1.9/psych/deprecated.rb lib/ruby/1.9/psych/handler.rb lib/ruby/1.9/psych/handlers/document_stream.rb lib/ruby/1.9/psych/handlers/recorder.rb lib/ruby/1.9/psych/json/ruby_events.rb lib/ruby/1.9/psych/json/stream.rb lib/ruby/1.9/psych/json/tree_builder.rb lib/ruby/1.9/psych/json/yaml_events.rb lib/ruby/1.9/psych/nodes.rb lib/ruby/1.9/psych/nodes/alias.rb lib/ruby/1.9/psych/nodes/document.rb lib/ruby/1.9/psych/nodes/mapping.rb lib/ruby/1.9/psych/nodes/node.rb lib/ruby/1.9/psych/nodes/scalar.rb lib/ruby/1.9/psych/nodes/sequence.rb lib/ruby/1.9/psych/nodes/stream.rb lib/ruby/1.9/psych/omap.rb lib/ruby/1.9/psych/parser.rb lib/ruby/1.9/psych/scalar_scanner.rb lib/ruby/1.9/psych/set.rb lib/ruby/1.9/psych/stream.rb lib/ruby/1.9/psych/syntax_error.rb lib/ruby/1.9/psych/tree_builder.rb lib/ruby/1.9/psych/visitors.rb lib/ruby/1.9/psych/visitors/depth_first.rb lib/ruby/1.9/psych/visitors/emitter.rb lib/ruby/1.9/psych/visitors/json_tree.rb lib/ruby/1.9/psych/visitors/to_ruby.rb lib/ruby/1.9/psych/visitors/visitor.rb lib/ruby/1.9/psych/visitors/yaml_tree.rb lib/ruby/1.9/psych/y.rb lib/ruby/2.0/bigdecimal/math.rb maven/jruby-complete/pom.xml maven/jruby-dist/pom.xml maven/jruby-jars/pom.xml maven/jruby-noasm/pom.xml maven/jruby-rake-plugin/pom.xml maven/jruby-stdlib/pom.xml maven/jruby/pom.xml maven/pom.xml pom.xml spec/java_integration/packages/access_spec.rb test/externals/ruby1.9/psych/helper.rb test/externals/ruby1.9/psych/test_alias_and_anchor.rb test/externals/ruby1.9/psych/test_array.rb test/externals/ruby1.9/psych/test_boolean.rb test/externals/ruby1.9/psych/test_class.rb test/externals/ruby1.9/psych/test_coder.rb test/externals/ruby1.9/psych/test_date_time.rb test/externals/ruby1.9/psych/test_deprecated.rb test/externals/ruby1.9/psych/test_document.rb test/externals/ruby1.9/psych/test_emitter.rb test/externals/ruby1.9/psych/test_encoding.rb test/externals/ruby1.9/psych/test_exception.rb test/externals/ruby1.9/psych/test_hash.rb test/externals/ruby1.9/psych/test_json_tree.rb test/externals/ruby1.9/psych/test_merge_keys.rb test/externals/ruby1.9/psych/test_nil.rb test/externals/ruby1.9/psych/test_null.rb test/externals/ruby1.9/psych/test_numeric.rb test/externals/ruby1.9/psych/test_object.rb test/externals/ruby1.9/psych/test_object_references.rb test/externals/ruby1.9/psych/test_omap.rb test/externals/ruby1.9/psych/test_parser.rb test/externals/ruby1.9/psych/test_psych.rb test/externals/ruby1.9/psych/test_scalar.rb test/externals/ruby1.9/psych/test_scalar_scanner.rb test/externals/ruby1.9/psych/test_serialize_subclasses.rb test/externals/ruby1.9/psych/test_set.rb test/externals/ruby1.9/psych/test_stream.rb test/externals/ruby1.9/psych/test_string.rb test/externals/ruby1.9/psych/test_struct.rb test/externals/ruby1.9/psych/test_symbol.rb test/externals/ruby1.9/psych/test_tainted.rb test/externals/ruby1.9/psych/test_to_yaml_properties.rb test/externals/ruby1.9/psych/test_tree_builder.rb test/externals/ruby1.9/psych/test_yaml.rb test/externals/ruby1.9/psych/test_yamldbm.rb test/externals/ruby1.9/psych/test_yamlstore.rb test/externals/ruby1.9/psych/visitors/test_to_ruby.rb test/externals/ruby1.9/psych/visitors/test_yaml_tree.rb test/pom.xml test/test_command_line_switches.rb test/test_helper.rb test/test_higher_javasupport.rb test/test_load_gem_extensions.rb test/test_zlib.rb
- 9.4.12.0
- 9.4.11.0
- 9.4.10.0
- 9.4.9.0
- 9.4.8.0
- 9.4.7.0
- 9.4.6.0
- 9.4.5.0
- 9.4.4.0
- 9.4.3.0
- 9.4.2.0
- 9.4.1.0
- 9.4.0.0
- 9.3.15.0
- 9.3.14.0
- 9.3.13.0
- 9.3.12.0
- 9.3.11.0
- 9.3.10.0
- 9.3.9.0
- 9.3.8.0
- 9.3.7.0
- 9.3.6.0
- 9.3.5.0
- 9.3.4.0
- 9.3.3.0
- 9.3.2.0
- 9.3.1.0
- 9.3.0.0
- 9.2.21.0
- 9.2.20.1
- 9.2.20.0
- 9.2.19.0
- 9.2.18.0
- 9.2.17.0
- 9.2.16.0
- 9.2.15.0
- 9.2.14.0
- 9.2.13.0
- 9.2.12.0
- 9.2.11.1
- 9.2.11.0
- 9.2.10.0
- 9.2.9.0
- 9.2.8.0
- 9.2.7.0
- 9.2.6.0
- 9.2.5.0
- 9.2.4.1
- 9.2.4.0
- 9.2.3.0
- 9.2.2.0
- 9.2.1.0
- 9.2.0.0
- 9.1.17.0
- 9.1.16.0
- 9.1.15.0
- 9.1.14.0
- 9.1.13.0
- 9.1.12.0
- 9.1.11.0
- 9.1.10.0
- 9.1.9.0
- 9.1.8.0
- 9.1.7.0
- 9.1.6.0
- 9.1.5.0
- 9.1.4.0
- 9.1.3.0
- 9.1.2.0
- 9.1.1.0
- 9.1.0.0
- 9.0.5.0
- 9.0.4.0
- 9.0.3.0
- 9.0.1.0
Showing
20 changed files
with
378 additions
and
118 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
package org.jruby.test; | ||
|
||
public abstract class Abstract { | ||
public String call_protected() { | ||
return protected_method(); | ||
} | ||
|
||
abstract protected String protected_method(); | ||
} | ||
public String result = null; | ||
|
||
public Abstract() { super(); } | ||
|
||
public Abstract(boolean callProtected) { | ||
// NOTE: the leaking this anti-pattern : | ||
if ( callProtected ) result = call_protected(); | ||
} | ||
|
||
public Abstract(final String result) { | ||
this(check(result)); | ||
//if ( this.result == null ) this.result = result; | ||
} | ||
|
||
private static boolean check(final String name) { | ||
return name.replace('_', ' ').contains("call protected method"); | ||
} | ||
|
||
public String call_protected() { | ||
return protected_method(); | ||
} | ||
|
||
protected abstract String protected_method() ; | ||
} |