Skip to content

Commit

Permalink
Backport fix for #141 into 2.12 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jul 8, 2021
1 parent 4d6859f commit 65942d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ public ValueInstantiator createOptimized()
methodType(Object.class, MethodHandle.class, Object[].class)),
methodType(Object.class, Object[].class))
.getTarget().invokeExact(
argsCreatorHandle.asSpreader(
argsCreatorHandle
// 08-Jul-2021, tatu: backported fix for [modules-base#141]
// to support varags
.asFixedArity()
.asSpreader(
Object[].class,
argsCreatorHandle.type().parameterCount())
.asType(methodType(Object.class, Object[].class))))
Expand Down
4 changes: 4 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Modules:
=== Releases ===
------------------------------------------------------------------------

Not yet released

#141: (blackbird) Blackbird fails to deserialize varargs array

2.12.4 (06-Jul-2021)

#131: (afterburner) Failing to serialize `Thread` returned by `Thread.currentThread()`
Expand Down

0 comments on commit 65942d8

Please sign in to comment.