Skip to content

Commit

Permalink
Fix bug in some Java implementations
Browse files Browse the repository at this point in the history
This doesn't fix Java 17, though
  • Loading branch information
ThexXTURBOXx committed Jan 7, 2022
1 parent a0e44a9 commit be54495
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/us/deathmarine/luyten/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
Expand Down Expand Up @@ -328,7 +327,7 @@ private static Iterator<?> list(ClassLoader CL) {
try {
ClassLoader_classes_field = CL_class.getDeclaredField("classes");
ClassLoader_classes_field.setAccessible(true);
Vector<?> classes = (Vector<?>) ClassLoader_classes_field.get(CL);
Iterable<?> classes = (Iterable<?>) ClassLoader_classes_field.get(CL);
return classes.iterator();
} catch (NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException e) {
Luyten.showExceptionDialog("Exception!", e);
Expand Down

0 comments on commit be54495

Please sign in to comment.