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
Fix constant pool
  • Loading branch information
m3m0r7 committed Apr 28, 2019
commit f41a975c9a0e66cfe513f2d4fb0e22ed4184089c
6 changes: 3 additions & 3 deletions src/Core/JVM/Invoker/Invokable.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,12 @@ function ($item) {
*/
$executor = OperationCache::fetchOrPush(
$fullName,
function () use ($fullName, &$currentConstantPool) {
return (new $fullName())
->setConstantPool($currentConstantPool);
function () use ($fullName) {
return new $fullName();
}
);
$returnValue = $executor
->setConstantPool($currentConstantPool)
->setParameters(
$method->getAttributes(),
$this->javaClassInvoker,
Expand Down
4 changes: 2 additions & 2 deletions src/Kernel/Core/Accumulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function setParameters(
\PHPJava\Core\JVM\Stream\BinaryReader $reader,
array &$localStorage,
array &$stacks,
int &$pointer
int $pointer
): self {
$this->attributes = &$attributes;
$this->javaClassInvoker = &$javaClassInvoker;
Expand All @@ -46,7 +46,7 @@ public function setParameters(
$this->reader = &$reader;
$this->localStorage = &$localStorage;
$this->stacks = &$stacks;
$this->pointer = &$pointer;
$this->pointer = $pointer;
return $this;
}

Expand Down