[ 
https://issues.apache.org/jira/browse/XMLCOMMONS-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17886039#comment-17886039
 ] 

Samael Bate edited comment on XMLCOMMONS-100 at 9/30/24 11:13 PM:
------------------------------------------------------------------

patch file: [^XMLCOMMONS-100.patch]


was (Author: singingbush):
patch file: [^XMLCOMMONS-99.patch]

> 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
>            Priority: Major
>         Attachments: XMLCOMMONS-100.patch
>
>
> 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]

Reply via email to