Skip to content

Commit

Permalink
Prep 1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
belgattitude committed May 29, 2017
1 parent 05059bc commit aaef4ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.4.5 (2017-05-29)

## Fixed

- Fix call to `PjbProxyClient::getInstance()->destroy()` in favour of `PjbProxyClient::unregisterIntance()`.

## 1.4.4 (2017-05-28)

## Fixed
Expand Down
14 changes: 7 additions & 7 deletions src/Soluble/Japha/Bridge/Driver/Pjb62/Pjb62Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function instanciate($class_name, ...$args)
try {
$java = new Java($class_name, ...$args);
} catch (Pjb62BrokenConnectionException $e) {
PjbProxyClient::getInstance()->destroy();
PjbProxyClient::unregisterInstance();
throw new BrokenConnectionException($e->getMessage(), $e->getCode(), $e);
}

Expand Down Expand Up @@ -147,7 +147,7 @@ public function invoke(Interfaces\JavaType $javaObject = null, $method, array $a
try {
return $this->pjbProxyClient->invokeMethod($javaObject, $method, $args);
} catch (Pjb62BrokenConnectionException $e) {
PjbProxyClient::getInstance()->destroy();
PjbProxyClient::unregisterInstance();
throw new BrokenConnectionException($e->getMessage(), $e->getCode(), $e);
}
}
Expand All @@ -164,7 +164,7 @@ public function getContext()
try {
return $this->pjbProxyClient->getClient()->getContext();
} catch (Pjb62BrokenConnectionException $e) {
PjbProxyClient::getInstance()->destroy();
PjbProxyClient::unregisterInstance();
throw new BrokenConnectionException($e->getMessage(), $e->getCode(), $e);
}
}
Expand All @@ -191,7 +191,7 @@ public function getJavaSession(array $args = [])
try {
return $this->pjbProxyClient->getClient()->getSession();
} catch (Pjb62BrokenConnectionException $e) {
PjbProxyClient::getInstance()->destroy();
PjbProxyClient::unregisterInstance();
throw new BrokenConnectionException($e->getMessage(), $e->getCode(), $e);
}
}
Expand All @@ -216,7 +216,7 @@ public function isInstanceOf(Interfaces\JavaObject $javaObject, $className)
try {
return $this->pjbProxyClient->isInstanceOf($javaObject, $className);
} catch (Pjb62BrokenConnectionException $e) {
PjbProxyClient::getInstance()->destroy();
PjbProxyClient::unregisterInstance();
throw new BrokenConnectionException($e->getMessage(), $e->getCode(), $e);
}
}
Expand All @@ -229,7 +229,7 @@ public function values(Interfaces\JavaObject $javaObject)
try {
return $this->pjbProxyClient->getValues($javaObject);
} catch (Pjb62BrokenConnectionException $e) {
PjbProxyClient::getInstance()->destroy();
PjbProxyClient::unregisterInstance();
throw new BrokenConnectionException($e->getMessage(), $e->getCode(), $e);
}
}
Expand Down Expand Up @@ -343,7 +343,7 @@ public function getClassName(Interfaces\JavaObject $javaObject)
try {
$inspect = $this->inspect($javaObject);
} catch (Pjb62BrokenConnectionException $e) {
PjbProxyClient::getInstance()->destroy();
PjbProxyClient::unregisterInstance();
throw new BrokenConnectionException($e->getMessage(), $e->getCode(), $e);
}

Expand Down

0 comments on commit aaef4ab

Please sign in to comment.