You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2023/02/17 23:21:23 UTC
[cxf] 02/02: Bump jruby from 1.7.27 to 9.4.1.0 (#1144)
This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch 3.6.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
commit e2a180e2cb6123cdf93b6725100708205d226549
Author: dependabot[bot] <49...@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] <su...@github.com>
* Update sample for jruby 9.4.1.0
---------
Signed-off-by: dependabot[bot] <su...@github.com>
Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
Co-authored-by: Andriy Redko <dr...@gmail.com>
---
.../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 a1f7adf790..a4480a3aae 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