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 a414fe2 commit b4e5d33
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 @@ -175,7 +175,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 b4e5d33

Please sign in to comment.