Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WIP
  • Loading branch information
m3m0r7 committed May 6, 2019
commit 88b0aae50ca6ab66a977bf18de5f52f5bfceab54
6 changes: 3 additions & 3 deletions src/Kernel/Mnemonics/_invokedynamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ public function execute(): void
$methodHandleType = MethodType::methodType($className);

$result = forward_static_call_array(
[$factory, $name],
[$factory, $methodHandledName],
array_merge(
[
MethodHandles::lookup(),
$methodHandledName,
$name,
$methodHandleType,
$bootstrapMethodArguments[0]->getStringObject()
],
$bootstrapMethodArguments,
$arguments
)
);
Expand Down
2 changes: 1 addition & 1 deletion src/Kernel/Structures/_BootstrapMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function execute(): void

$cp = $this->getConstantPool();
for ($i = 0; $i < $this->numBootstrapArguments; $i++) {
$this->bootstrapArguments[] = $cp[$cp[$this->readUnsignedShort()]->getStringIndex()];
$this->bootstrapArguments[] = $cp[$this->readUnsignedShort()];
}
}

Expand Down
1 change: 1 addition & 0 deletions src/Packages/java/lang/invoke/LambdaMetafactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public static function altMetafactory($a = null, $b = null, $c = null, $d = null
*/
public static function metafactory($a = null, $b = null, $c = null, $d = null, $e = null, $f = null)
{
var_dump(func_get_args());
throw new NotImplementedException(__METHOD__);
}
}