mirror of
https://github.com/Z3Prover/z3
synced 2025-06-14 01:46:15 +00:00
Java API: bugfix
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
67485b8af7
commit
eb3fa254d8
1 changed files with 21 additions and 17 deletions
|
@ -39,9 +39,11 @@ public class AST extends Z3Object
|
||||||
{
|
{
|
||||||
AST casted = null;
|
AST casted = null;
|
||||||
|
|
||||||
try {
|
try
|
||||||
|
{
|
||||||
casted = AST.class.cast(o);
|
casted = AST.class.cast(o);
|
||||||
} catch (ClassCastException e) {
|
} catch (ClassCastException e)
|
||||||
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,9 +62,11 @@ public class AST extends Z3Object
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
AST oAST = null;
|
AST oAST = null;
|
||||||
try {
|
try
|
||||||
AST.class.cast(other);
|
{
|
||||||
} catch (ClassCastException e) {
|
oAST = AST.class.cast(other);
|
||||||
|
} catch (ClassCastException e)
|
||||||
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue