Skip to content

Commit

Permalink
report exceptions and make sourcecontents serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-- committed Jan 27, 2012
1 parent 0e35f67 commit d8acbd3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion compiler/org/sugarj/driver/Driver.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ private static Result run(String source, RelativeSourceLocationPath sourceFile,
for (ProcessingListener listener : processingListener)
listener.processingDone(driver.driverResult);
}

} catch (Exception e) {
org.strategoxt.imp.runtime.Environment.logException(e);
} finally {
pendingRuns.remove(sourceFile);
if (generateFiles)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package org.sugarj.driver.sourcefilecontent;

import java.io.Serializable;

/**
*
* @author seba
*/
public interface ISourceFileContent {
public interface ISourceFileContent extends Serializable {
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*
*/
public class JavaSourceFileContent implements ISourceFileContent {
private static final long serialVersionUID = 1164576595940328804L;

String packageDecl;
List<String> imports = new LinkedList<String>();
Expand Down

0 comments on commit d8acbd3

Please sign in to comment.