Samael Bate created XMLCOMMONS-100:
--------------------------------------
Summary: unnamed variables are a preview feature and are disabled
by default
Key: XMLCOMMONS-100
URL: https://issues.apache.org/jira/browse/XMLCOMMONS-100
Project: XML Commons
Issue Type: Bug
Reporter: Samael Bate
There are two classes that use an underscore as an identifier for an exception
in catch block.
This was allowed in the past but as underscore is now reserved for unnamed
patterns & variables it causes an error when building with JDK 9+
The files in question are:
* javax.xml.validation.SchemaFactoryFinder
* javax.xml.xpath.XPathFactoryFinder
The fix is to simply change
{code:java}
catch (Exception _) {code}
to
{noformat}
catch (Exception e){noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]