milamberspace commented on code in PR #6856:
URL: https://github.com/apache/jmeter/pull/6856#discussion_r4727158650


##########
xdocs/changes.xml:
##########
@@ -156,6 +156,7 @@ Summary
     <li><bug>6456</bug>Handle malformed percent-encoded URLs gracefully when 
recording HTTP traffic, logging a warning instead of failing the recording.</li>
     <li><pr>6742</pr>Count single byte writes in 
<code>CountingOutputStream</code> as well, so the SMTP Sampler does not 
under-report the size of the messages it sends.</li>
     <li><pr>6742</pr>Present the client certificate of the JMeter key store 
also on TLS connections that perform the handshake with an 
<code>SSLEngine</code>, like those of asynchronous HTTP clients, which the 
HttpClient5 sampler implementation uses for HTTP/2. So far it was only 
presented on socket based connections.</li>
+    <li><pr>5937</pr>Deprecate Xalan for removal. Contributed by Ori Marko 
(github.com/orimarko)</li>

Review Comment:
   `5937` is the Log4j issue listed above (line 154), it should be 
`<issue>6591</issue>`. I would also move this entry to *Incompatible changes* 
and say what users need to do, for example:
   
   ```xml
   <li><issue>6591</issue>The bundled Xalan library (<code>xalan</code> and 
<code>serializer</code> jars) is deprecated and will be removed in a future 
version, together with <code>PropertiesBasedPrefixResolver</code> and 
<code>PropertiesBasedPrefixResolverForXpath2</code>. Plugins and JSR223 scripts 
that use <code>org.apache.xpath</code> or <code>org.apache.xml</code> classes 
from JMeter's classpath should bundle their own copy of Xalan or switch to 
<code>javax.xml.xpath</code>. Contributed by Ori Marko 
(github.com/orimarko)</li>
   ```



##########
src/core/src/main/java/org/apache/jmeter/util/PropertiesBasedPrefixResolver.java:
##########
@@ -36,7 +36,9 @@
 
 /**
  * {@link PrefixResolver} implementation that loads prefix configuration from 
jmeter property xpath.namespace.config
+ * @deprecated This Xalan-based class is scheduled for removal.
  */
+@Deprecated(since = "6.0", forRemoval = true)

Review Comment:
   Following the convention of the other 6.0 deprecations (e.g. 
`StringUtilities`, `JOrphanUtils.nullifyIfEmptyTrimmed`), could you add 
`@API(since = "6.0.0", status = API.Status.DEPRECATED)` (plus `import 
org.apiguardian.api.API;`) and tell users what to do in the `@deprecated` tag? 
For example:
   
   ```suggestion
    * @deprecated Xalan will be removed from JMeter. This class is an 
implementation detail of the XPath 1
    *     functions and has no public replacement; namespace prefixes remain 
configurable with the
    *     {@code xpath.namespace.config} property.
    */
   @Deprecated(since = "6.0.0", forRemoval = true)
   @API(since = "6.0.0", status = API.Status.DEPRECATED)
   ```



##########
src/core/src/main/java/org/apache/jmeter/util/PropertiesBasedPrefixResolverForXpath2.java:
##########
@@ -27,7 +27,9 @@
 /**
  * {@link PrefixResolver} implementation that loads prefix configuration from
  * jmeter property xpath.namespace.config
+ * @deprecated This Xalan-based class is scheduled for removal.
  */
+@Deprecated(since = "6.0", forRemoval = true)

Review Comment:
   Same as for `PropertiesBasedPrefixResolver` (`@API` + `import 
org.apiguardian.api.API;`):
   
   ```suggestion
    * @deprecated Xalan will be removed from JMeter. This class is an 
implementation detail of the XPath 1
    *     functions and has no public replacement; namespace prefixes remain 
configurable with the
    *     {@code xpath.namespace.config} property.
    */
   @Deprecated(since = "6.0.0", forRemoval = true)
   @API(since = "6.0.0", status = API.Status.DEPRECATED)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to