Skip to content

Commit

Permalink
Temporary fix for ClassNotFound issue with Java conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcmiller committed Apr 27, 2021
1 parent 6f6ed7f commit cfc792e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/chalkbox/java/conformance/SourceLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public List<String> getSourceFiles() {
public Map<String, Class> getClassMap() throws ClassNotFoundException {
Map<String, Class> classes = new TreeMap<>();
for (String file : files) {
// Any GUI-related classes break conformance, don't load them
// TODO find a better fix for this
if (file.contains("$") || file.contains("Canvas") || file.contains("Launcher")
|| file.contains("View")) {
continue;
}
classes.put(file, loadClass(file));
}
return classes;
Expand Down

0 comments on commit cfc792e

Please sign in to comment.