diff --git a/api/src/main/java/jakarta/servlet/ServletRequest.java b/api/src/main/java/jakarta/servlet/ServletRequest.java index 62f800cf8..c261a2f50 100644 --- a/api/src/main/java/jakarta/servlet/ServletRequest.java +++ b/api/src/main/java/jakarta/servlet/ServletRequest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2023 Oracle and/or its affiliates and others. + * Copyright (c) 1997, 2024 Oracle and/or its affiliates and others. * All rights reserved. * Copyright 2004 The Apache Software Foundation * @@ -410,6 +410,11 @@ default void setCharacterEncoding(Charset encoding) { * The difference between this method and {@link ServletContext#getRequestDispatcher} is that this method can take a * relative path. * + *

+ * The provided {@code path} parameter is canonicalized as per Servlet 6.0, + * 3.5.2 before being used to match resources. + * * @param path a String specifying the pathname to the resource. If it is relative, it must be relative * against the current servlet. *