Skip to content

Commit

Permalink
Improved comment
Browse files Browse the repository at this point in the history
Co-authored-by: Matej Novotny <[email protected]>
  • Loading branch information
WolfgangHG and manovotn authored Nov 4, 2024
1 parent db1d8fb commit 4968efd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ private <T> Set<Class<? extends T>> load(Class<T> serviceClass, ClassLoader load
while (enumeration.hasMoreElements()) {
final URL url = enumeration.nextElement();
URLConnection jarConnection = url.openConnection();
//Don't cache the file (avoids file leaks on GlassFish).
// Avoid caching the file; in combination with Windows OS, can cause file leaks on some EE servers (GF)
// See WELD-2800 for more details
jarConnection.setUseCaches(false);
final InputStream is = jarConnection.getInputStream();
BufferedReader reader = null;
Expand Down

0 comments on commit 4968efd

Please sign in to comment.