Skip to content

Commit

Permalink
Fixes jpype-project#782, jpype-project#779 and adds release number
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrameos committed Jul 10, 2020
1 parent e016284 commit edf62e2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Copyright (c) 2004-2008 Steve Menard
Copyright (c) 2020 Lawrence Livermore National Security, LLC.
Produced at the Lawrence Livermore National Laboratory

LLNL-CODE-XXXXXXX
LLNL-CODE- 812311

All rights reserved.

Expand Down
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ access to the entirety of CPython and Java libraries.
:Version: |PypiVersion|_ |Conda|_

The work on this project began on `Sourceforge <http://sourceforge.net/projects/jpype/>`__.
LLNL-CODE- 812311


.. |alerts| image:: https://img.shields.io/lgtm/alerts/g/jpype-project/jpype.svg?logo=lgtm&logoWidth=18
Expand Down Expand Up @@ -62,4 +63,4 @@ The work on this project began on `Sourceforge <http://sourceforge.net/projects/
.. _Apache 2 License: https://github.com/jpype-project/jpype/blob/master/LICENSE
.. _Python Docs: http://jpype.readthedocs.org/en/latest/


SPDX-License-Identifier: Apache-2.0
2 changes: 1 addition & 1 deletion jpype/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def startJVM(*args, **kwargs):
source = str(ex)
if "UnsupportedClassVersion" in source:
import re
match = re.search("([0-9]+)\.[0-9]+", source)
match = re.search(r"([0-9]+)\.[0-9]+", source)
if match:
version = int(match.group(1)) - 44
raise RuntimeError("%s is older than required Java version %d" % (
Expand Down
4 changes: 1 addition & 3 deletions jpype/_jproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ def new(tp, *args, **kwargs):
if actualIntf is None:
actualIntf = _prepareInterfaces(cls, intf)
tp.__jpype_interfaces__ = actualIntf
self = _jpype._JProxy.__new__(tp, None, actualIntf)
tp.__init__(self, *args, **kwargs)
return self
return _jpype._JProxy.__new__(tp, None, actualIntf)

members = {'__new__': new}
# Return the augmented class
Expand Down

0 comments on commit edf62e2

Please sign in to comment.