Skip to content

Commit 4020d62

Browse files
committed
Get generator point directly from paramSpec
1 parent 23ff684 commit 4020d62

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ DO NOT MODIFY - GENERATED CODE
6565
<invoker.test>${bc.versions}</invoker.test>
6666
<jruby.plugins.version>3.0.2</jruby.plugins.version>
6767
<jruby.switches>-W0</jruby.switches>
68-
<jruby.version>9.2.19.0</jruby.version>
69-
<jruby.versions>9.2.19.0</jruby.versions>
68+
<jruby.version>9.1.17.0</jruby.version>
69+
<jruby.versions>9.1.17.0</jruby.versions>
7070
<mavengem-wagon.version>2.0.2</mavengem-wagon.version>
7171
<mavengem.wagon.version>2.0.2</mavengem.wagon.version>
7272
<polyglot.dump.pom>pom.xml</polyglot.dump.pom>
@@ -274,7 +274,6 @@ DO NOT MODIFY - GENERATED CODE
274274
<configuration>
275275
<source>1.8</source>
276276
<target>1.8</target>
277-
<release>8</release>
278277
<encoding>UTF-8</encoding>
279278
<debug>true</debug>
280279
<showWarnings>true</showWarnings>

src/main/java/org/jruby/ext/openssl/PKeyEC.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ private boolean getPointAndGroup(ThreadContext context, IRubyObject groupOrPoint
976976

977977
if ( groupOrPoint instanceof Group) {
978978
this.group = (Group) groupOrPoint;
979-
this.point = (ECPoint) ((Group) groupOrPoint).generator(context);
979+
this.point = this.group.getParamSpec().getGenerator();
980980
} else {
981981
throw runtime.newTypeError(groupOrPoint, _EC(runtime).getClass("Group"));
982982
}

0 commit comments

Comments
 (0)