Browse Source

Fix forgotten try catch

jaredlll08 5 years ago
parent
commit
86d321cbdd

+ 17
- 12
Constructor/src/main/java/org/openzen/zenscript/constructor/ConstructorRegistry.java View File

5
  */
5
  */
6
 package org.openzen.zenscript.constructor;
6
 package org.openzen.zenscript.constructor;
7
 
7
 
8
-import java.io.File;
9
-import java.io.FileOutputStream;
10
-import java.io.IOException;
11
-import java.io.OutputStreamWriter;
12
-import java.nio.charset.StandardCharsets;
13
-import java.util.ArrayList;
14
-import java.util.HashMap;
15
-import java.util.List;
16
-import java.util.Map;
17
 import org.json.JSONObject;
8
 import org.json.JSONObject;
18
 import org.openzen.zenscript.codemodel.SemanticModule;
9
 import org.openzen.zenscript.codemodel.SemanticModule;
19
 import org.openzen.zenscript.codemodel.definition.ZSPackage;
10
 import org.openzen.zenscript.codemodel.definition.ZSPackage;
24
 import org.openzen.zenscript.javabytecode.JavaBytecodeModule;
15
 import org.openzen.zenscript.javabytecode.JavaBytecodeModule;
25
 import org.openzen.zenscript.javabytecode.JavaBytecodeRunUnit;
16
 import org.openzen.zenscript.javabytecode.JavaBytecodeRunUnit;
26
 import org.openzen.zenscript.javabytecode.JavaCompiler;
17
 import org.openzen.zenscript.javabytecode.JavaCompiler;
27
-import org.openzen.zenscript.javashared.JavaCompileSpace;
28
 import org.openzen.zenscript.javashared.JavaCompiledModule;
18
 import org.openzen.zenscript.javashared.JavaCompiledModule;
29
 import org.openzen.zenscript.javashared.SimpleJavaCompileSpace;
19
 import org.openzen.zenscript.javashared.SimpleJavaCompileSpace;
30
 import org.openzen.zenscript.javasource.JavaDirectoryOutput;
20
 import org.openzen.zenscript.javasource.JavaDirectoryOutput;
31
 import org.openzen.zenscript.javasource.JavaSourceCompiler;
21
 import org.openzen.zenscript.javasource.JavaSourceCompiler;
32
 import org.openzen.zenscript.javasource.JavaSourceModule;
22
 import org.openzen.zenscript.javasource.JavaSourceModule;
33
 
23
 
24
+import java.io.File;
25
+import java.io.FileOutputStream;
26
+import java.io.IOException;
27
+import java.io.OutputStreamWriter;
28
+import java.lang.reflect.InvocationTargetException;
29
+import java.nio.charset.StandardCharsets;
30
+import java.util.ArrayList;
31
+import java.util.HashMap;
32
+import java.util.List;
33
+import java.util.Map;
34
+
34
 /**
35
 /**
35
  *
36
  *
36
  * @author Hoofdgebruiker
37
  * @author Hoofdgebruiker
220
 			for (JavaBytecodeModule module : modules)
221
 			for (JavaBytecodeModule module : modules)
221
 				unit.add(module);
222
 				unit.add(module);
222
 			//unit.add(compiler.helpers);
223
 			//unit.add(compiler.helpers);
223
-			unit.run();
224
-		}
224
+            try {
225
+                unit.run();
226
+            } catch(ClassNotFoundException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
227
+                e.printStackTrace();
228
+            }
229
+        }
225
 	}
230
 	}
226
 }
231
 }

Loading…
Cancel
Save