This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch 3.4.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
commit 7f3fa88b6f7a2f5c2dfd68e6497ba0561a036811
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Fri Feb 17 18:20:32 2023 -0500
Bump jruby from 1.7.27 to 9.4.1.0 (#1144)
* Bump jruby from 1.7.27 to 9.4.1.0
Bumps jruby from 1.7.27 to 9.4.1.0.
---
updated-dependencies:
- dependency-name: org.jruby:jruby
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected]>
* Update sample for jruby 9.4.1.0
---------
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot]
<49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andriy Redko <[email protected]>
---
.../src/main/release/samples/ruby_spring_support/pom.xml | 2 +-
.../src/main/java/demo/spring/client/Client.java | 14 ++++++--------
.../src/main/resources/HelloWorldImpl.rb | 2 +-
3 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/distribution/src/main/release/samples/ruby_spring_support/pom.xml
b/distribution/src/main/release/samples/ruby_spring_support/pom.xml
index 2f7325e6b2..94b191a1da 100644
--- a/distribution/src/main/release/samples/ruby_spring_support/pom.xml
+++ b/distribution/src/main/release/samples/ruby_spring_support/pom.xml
@@ -110,7 +110,7 @@
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby</artifactId>
- <version>1.7.27</version>
+ <version>9.4.1.0</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
diff --git
a/distribution/src/main/release/samples/ruby_spring_support/src/main/java/demo/spring/client/Client.java
b/distribution/src/main/release/samples/ruby_spring_support/src/main/java/demo/spring/client/Client.java
index 0a3fb67689..616fdbe366 100644
---
a/distribution/src/main/release/samples/ruby_spring_support/src/main/java/demo/spring/client/Client.java
+++
b/distribution/src/main/release/samples/ruby_spring_support/src/main/java/demo/spring/client/Client.java
@@ -30,14 +30,12 @@ public final class Client {
public static void main(String[] args) throws Exception {
// START SNIPPET: client
- ClassPathXmlApplicationContext context
- = new ClassPathXmlApplicationContext(new String[]
{"client-beans.xml"});
-
- HelloWorld client = (HelloWorld)context.getBean("client");
-
- String response = client.sayHi("Joe");
- System.out.println("Response: " + response);
- System.exit(0);
+ try (ClassPathXmlApplicationContext context
+ = new ClassPathXmlApplicationContext(new String[]
{"client-beans.xml"})) {
+ HelloWorld client = (HelloWorld)context.getBean("client");
+ String response = client.sayHi("Joe");
+ System.out.println("Response: " + response);
+ }
// END SNIPPET: client
}
}
diff --git
a/distribution/src/main/release/samples/ruby_spring_support/src/main/resources/HelloWorldImpl.rb
b/distribution/src/main/release/samples/ruby_spring_support/src/main/resources/HelloWorldImpl.rb
index 246d953205..821d196460 100644
---
a/distribution/src/main/release/samples/ruby_spring_support/src/main/resources/HelloWorldImpl.rb
+++
b/distribution/src/main/release/samples/ruby_spring_support/src/main/resources/HelloWorldImpl.rb
@@ -17,7 +17,7 @@
require 'java'
-include_class 'demo.spring.service.HelloWorld'
+java_import 'demo.spring.service.HelloWorld'
class HelloWorldImpl