Compiler log for org.eclipse.equinox.http.servlet_1.8.200.v20240321-1445 : @dot.xml

TOTAL : ERRORS: 0, WARNINGS: 29, INFOS: 0

errors others warnings infos forbidden warnings discouraged warnings

ERRORS

top others warnings infos forbidden warnings discouraged warnings

OTHER WARNINGS

top errors infos forbidden warnings discouraged warnings

/src/org/eclipse/equinox/http/servlet/internal/HttpServiceImpl.java : 6 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/equinox/http/servlet/internal/HttpServiceImpl.java
 (at line 72)
AccessController.doPrivileged((PrivilegedExceptionAction<Void>) () -> {
The type AccessController has been deprecated since version 17 and marked for removal
2. WARNING in /src/org/eclipse/equinox/http/servlet/internal/HttpServiceImpl.java
 (at line 72)
AccessController.doPrivileged((PrivilegedExceptionAction<Void>) () -> { httpServiceRuntime.registerHttpServiceFilter(bundle, alias, filter, initparams, httpContextHolder); return null; });
The method doPrivileged(PrivilegedExceptionAction<Void>) from the type AccessController is deprecated
3. WARNING in /src/org/eclipse/equinox/http/servlet/internal/HttpServiceImpl.java
 (at line 98)
AccessController.doPrivileged((PrivilegedExceptionAction<Void>) () -> {
The type AccessController has been deprecated since version 17 and marked for removal
4. WARNING in /src/org/eclipse/equinox/http/servlet/internal/HttpServiceImpl.java
 (at line 98)
AccessController.doPrivileged((PrivilegedExceptionAction<Void>) () -> { httpServiceRuntime.registerHttpServiceResources(bundle, alias, name, httpContextHolder); return null; });
The method doPrivileged(PrivilegedExceptionAction<Void>) from the type AccessController is deprecated
5. WARNING in /src/org/eclipse/equinox/http/servlet/internal/HttpServiceImpl.java
 (at line 117)
AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
The type AccessController has been deprecated since version 17 and marked for removal
6. WARNING in /src/org/eclipse/equinox/http/servlet/internal/HttpServiceImpl.java
 (at line 117)
AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() { @Override public Void run() throws NamespaceException, ServletException { httpServiceRuntime.registerHttpServiceServlet(bundle, alias, servlet, initparams, httpContextHolder); return null; } });
The method doPrivileged(PrivilegedExceptionAction<Void>) from the type AccessController is deprecated

/src/org/eclipse/equinox/http/servlet/internal/context/ContextController.java : 5 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/equinox/http/servlet/internal/context/ContextController.java
 (at line 21)
import java.security.AccessController;
The type AccessController has been deprecated since version 17 and marked for removal
2. WARNING in /src/org/eclipse/equinox/http/servlet/internal/context/ContextController.java
 (at line 358)
Servlet servlet = new ResourceServlet(prefix, curServletContextHelper, AccessController.getContext());
The type AccessController has been deprecated since version 17 and marked for removal
3. WARNING in /src/org/eclipse/equinox/http/servlet/internal/context/ContextController.java
 (at line 358)
Servlet servlet = new ResourceServlet(prefix, curServletContextHelper, AccessController.getContext());
The method getContext() from the type AccessController is deprecated
4. WARNING in /src/org/eclipse/equinox/http/servlet/internal/context/ContextController.java
 (at line 1036)
eventListeners, AccessController.getContext());
The type AccessController has been deprecated since version 17 and marked for removal
5. WARNING in /src/org/eclipse/equinox/http/servlet/internal/context/ContextController.java
 (at line 1036)
eventListeners, AccessController.getContext());
The method getContext() from the type AccessController is deprecated

/src/org/eclipse/equinox/http/servlet/internal/multipart/MultipartSupportImpl.java : 4 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/equinox/http/servlet/internal/multipart/MultipartSupportImpl.java
 (at line 18)
import java.security.AccessControlContext;
The type AccessControlContext has been deprecated since version 17 and marked for removal
2. WARNING in /src/org/eclipse/equinox/http/servlet/internal/multipart/MultipartSupportImpl.java
 (at line 77)
AccessControlContext accessControlContext = bundle.adapt(AccessControlContext.class);
The type AccessControlContext has been deprecated since version 17 and marked for removal
3. WARNING in /src/org/eclipse/equinox/http/servlet/internal/multipart/MultipartSupportImpl.java
 (at line 77)
AccessControlContext accessControlContext = bundle.adapt(AccessControlContext.class);
The type AccessControlContext has been deprecated since version 17 and marked for removal
4. WARNING in /src/org/eclipse/equinox/http/servlet/internal/multipart/MultipartSupportImpl.java
 (at line 80)
accessControlContext.checkPermission(new FilePermission(baseStorage.getAbsolutePath(), "read,write")); //$NON-NLS-1$
The method checkPermission(Permission) from the type AccessControlContext is deprecated

/src/org/eclipse/equinox/http/servlet/internal/servlet/ResourceServlet.java : 4 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ResourceServlet.java
 (at line 43)
private final AccessControlContext acc;
The type AccessControlContext has been deprecated since version 17 and marked for removal
2. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ResourceServlet.java
 (at line 45)
public ResourceServlet(String internalName, ServletContextHelper servletContextHelper, AccessControlContext acc) {
The type AccessControlContext has been deprecated since version 17 and marked for removal
3. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ResourceServlet.java
 (at line 74)
AccessController.doPrivileged((PrivilegedExceptionAction<Boolean>) () -> {
The type AccessController has been deprecated since version 17 and marked for removal
4. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ResourceServlet.java
 (at line 74)
AccessController.doPrivileged((PrivilegedExceptionAction<Boolean>) () -> { URLConnection connection = resourceURL.openConnection(); long lastModified = connection.getLastModified(); int contentLength = connection.getContentLength(); String etag = null; if (lastModified != -1 && contentLength != -1) etag = "W/\"" + contentLength + "-" + lastModified + "\""; //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ // Check for cache revalidation. // We should prefer ETag validation as the guarantees are stronger and all HTTP // 1.1 clients should be using it String ifNoneMatch = req.getHeader(IF_NONE_MATCH); if (ifNoneMatch != null && etag != null && ifNoneMatch.indexOf(etag) != -1) { resp.setStatus(HttpServletResponse.SC_NOT_MODIFIED); return Boolean.TRUE; } long ifModifiedSince = req.getDateHeader(IF_MODIFIED_SINCE); // for purposes of comparison we add 999 to ifModifiedSince since the fidelity // of the IMS header generally doesn't include milli-seconds if (ifModifiedSince > -1 && lastModified > 0 && lastModified <= (ifModifiedSince + 999)) { resp.setStatus(HttpServletResponse.SC_NOT_MODIFIED); return Boolean.TRUE; } String rangeHeader = req.getHeader(RANGE); Range range = null; if (rangeHeader != null) { range = Range.createFromRangeHeader(rangeHeader); range.completeLength = contentLength; range.updateBytePos(); if (!range.isValid()) { resp.setHeader(ACCEPT_RANGES, RANGE_UNIT_BYTES); resp.setStatus(HttpServletResponse.SC_REQUESTED_RANGE_NOT_SATISFIABLE); return Boolean.TRUE; } } // return the full contents regularly if (contentLength != -1) resp.setContentLength(contentLength); String filename = new File(resourcePath).getName(); String contentType = servletContextHelper.getMimeType(filename); if (contentType == null) contentType = getServletConfig().getServletContext().getMimeType(filename); if (contentType != null) resp.setContentType(contentType); if (lastModified > 0) resp.setDateHeader(LAST_MODIFIED, lastModified); if (etag != null) resp.setHeader(ETAG, etag); if (range == null && (servletContextHelper instanceof RangeAwareServletContextHelper) && ((RangeAwareServletContextHelper) servletContextHelper).rangeableContentType(contentType, req.getHeader("User-Agent"))) { //$NON-NLS-1$ range = new Range(); range.firstBytePos = 0; range.completeLength = contentLength; range.updateBytePos(); } if (range != null) { resp.setStatus(HttpServletResponse.SC_PARTIAL_CONTENT); resp.setHeader(ACCEPT_RANGES, RANGE_UNIT_BYTES); resp.setContentLength(range.contentLength()); resp.setHeader(CONTENT_RANGE, RANGE_UNIT_BYTES + " " + range.firstBytePos + "-" + range.lastBytePos //$NON-NLS-1$ //$NON-NLS-2$ + "/" + range.completeLength); //$NON-NLS-1$ } if (contentLength != 0) { // open the input stream try (InputStream is = connection.getInputStream()) { // write the resource try { OutputStream os = resp.getOutputStream(); int writtenContentLength = writeResourceToOutputStream(is, os, range); if (contentLength == -1 || contentLength != writtenContentLength) resp.setContentLength(writtenContentLength); } catch (IllegalStateException e) { // can occur if the response output is already open as a // Writer Writer writer = resp.getWriter(); writeResourceToWriter(is, writer, range); // Since ContentLength is a measure of the number of bytes contained in the body // of a message when we use a Writer we lose control of the exact byte count and // defer the problem to the Servlet Engine's Writer implementation. } } catch (FileNotFoundException | SecurityException e) { // SecurityException may indicate the following scenarios // - url is not accessible sendError(resp, HttpServletResponse.SC_FORBIDDEN); } } return Boolean.TRUE; }, acc);
The method doPrivileged(PrivilegedExceptionAction<Boolean>, AccessControlContext) from the type AccessController is deprecated

/src/org/eclipse/equinox/http/servlet/internal/servlet/ServletContextAdaptor.java : 10 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ServletContextAdaptor.java
 (at line 73)
ServletContextHelper servletContextHelper, EventListeners eventListeners, AccessControlContext acc) {
The type AccessControlContext has been deprecated since version 17 and marked for removal
2. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ServletContextAdaptor.java
 (at line 152)
mimeType = AccessController.doPrivileged(
The type AccessController has been deprecated since version 17 and marked for removal
3. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ServletContextAdaptor.java
 (at line 152)
mimeType = AccessController.doPrivileged( (PrivilegedExceptionAction<String>) () -> servletContextHelper.getMimeType(name), acc);
The method doPrivileged(PrivilegedExceptionAction<String>, AccessControlContext) from the type AccessController is deprecated
4. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ServletContextAdaptor.java
 (at line 174)
return AccessController.doPrivileged(
The type AccessController has been deprecated since version 17 and marked for removal
5. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ServletContextAdaptor.java
 (at line 174)
return AccessController.doPrivileged( (PrivilegedExceptionAction<String>) () -> servletContextHelper.getRealPath(path), acc);
The method doPrivileged(PrivilegedExceptionAction<String>, AccessControlContext) from the type AccessController is deprecated
6. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ServletContextAdaptor.java
 (at line 204)
return AccessController
The type AccessController has been deprecated since version 17 and marked for removal
7. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ServletContextAdaptor.java
 (at line 205)
.doPrivileged((PrivilegedExceptionAction<URL>) () -> servletContextHelper.getResource(name), acc);
The method doPrivileged(PrivilegedExceptionAction<URL>, AccessControlContext) from the type AccessController is deprecated
8. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ServletContextAdaptor.java
 (at line 235)
return AccessController.doPrivileged(
The type AccessController has been deprecated since version 17 and marked for removal
9. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ServletContextAdaptor.java
 (at line 235)
return AccessController.doPrivileged( (PrivilegedExceptionAction<Set<String>>) () -> servletContextHelper.getResourcePaths(name), acc);
The method doPrivileged(PrivilegedExceptionAction<Set<String>>, AccessControlContext) from the type AccessController is deprecated
10. WARNING in /src/org/eclipse/equinox/http/servlet/internal/servlet/ServletContextAdaptor.java
 (at line 414)
private final AccessControlContext acc;
The type AccessControlContext has been deprecated since version 17 and marked for removal

INFO WARNINGS

errors others warnings forbidden warnings discouraged warnings

FORBIDDEN ACCESS WARNINGS

top errors infos others warnings discouraged warnings

DISCOURAGED ACCESS WARNINGS

top errors infos others warnings forbidden warnings