Skip to content

Commit 88b0aae

Browse files
committed
WIP
1 parent f3c7c51 commit 88b0aae

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Kernel/Mnemonics/_invokedynamic.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ public function execute(): void
111111
$methodHandleType = MethodType::methodType($className);
112112

113113
$result = forward_static_call_array(
114-
[$factory, $name],
114+
[$factory, $methodHandledName],
115115
array_merge(
116116
[
117117
MethodHandles::lookup(),
118-
$methodHandledName,
118+
$name,
119119
$methodHandleType,
120-
$bootstrapMethodArguments[0]->getStringObject()
121120
],
121+
$bootstrapMethodArguments,
122122
$arguments
123123
)
124124
);

src/Kernel/Structures/_BootstrapMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function execute(): void
2121

2222
$cp = $this->getConstantPool();
2323
for ($i = 0; $i < $this->numBootstrapArguments; $i++) {
24-
$this->bootstrapArguments[] = $cp[$cp[$this->readUnsignedShort()]->getStringIndex()];
24+
$this->bootstrapArguments[] = $cp[$this->readUnsignedShort()];
2525
}
2626
}
2727

src/Packages/java/lang/invoke/LambdaMetafactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public static function altMetafactory($a = null, $b = null, $c = null, $d = null
6464
*/
6565
public static function metafactory($a = null, $b = null, $c = null, $d = null, $e = null, $f = null)
6666
{
67+
var_dump(func_get_args());
6768
throw new NotImplementedException(__METHOD__);
6869
}
6970
}

0 commit comments

Comments
 (0)