Skip to content

Commit

Permalink
Improved comment
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangHG authored and manovotn committed Nov 5, 2024
1 parent 5bdde56 commit 4da010b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion impl/src/main/java/org/jboss/weld/util/ServiceLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ private void loadServiceFile(URL serviceFile) {
InputStream is = null;
try {
URLConnection jarConnection = serviceFile.openConnection();
//Don't cache the file (avoids file leaks on GlassFish).
//Don't cache the file; in combination with Windows OS, this can cause file leaks on some EE servers (GlassFish)
// See WELD-2800 for more details
jarConnection.setUseCaches(false);
is = jarConnection.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
Expand Down

0 comments on commit 4da010b

Please sign in to comment.