[Jython-checkins] jython: Fix failures in test_java_visibility emerging at Java 12.

jeff.allen jython-checkins at python.org
Sat Aug 3 07:00:41 EDT 2019


https://hg.python.org/jython/rev/393337d071bb
changeset:   8268:393337d071bb
user:        Jeff Allen <ja.py at farowl.co.uk>
date:        Fri Aug 02 21:52:43 2019 +0100
summary:
  Fix failures in test_java_visibility emerging at Java 12.

A new package has been added that must be opened. Otherwise, disrespect
for Java accessibility is punished with a stack dump.

files:
  Lib/test/test_java_visibility.py |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_java_visibility.py b/Lib/test/test_java_visibility.py
--- a/Lib/test/test_java_visibility.py
+++ b/Lib/test/test_java_visibility.py
@@ -267,6 +267,8 @@
             self.add_opens("java.desktop", "java.awt.geom")
             for package in ("lang", "util", "nio", "nio.charset"):
                 self.add_opens("java.base", "java." + package)
+            if test_support.get_java_version() >= (12,):
+                self.add_opens("java.base", "java.lang.constant")
 
         self.command.append(fn)
         self.assertEquals(subprocess.call(self.command), 0)

-- 
Repository URL: https://hg.python.org/jython


More information about the Jython-checkins mailing list