Permalink
Browse files

Add patch for CLJ-788

  • Loading branch information...
1 parent efff756 commit 286546eef8c6421cc65be8b2e134ad6532b8f4ce @jafingerhut committed Mar 8, 2012
@@ -0,0 +1,29 @@
+From aeee5e6181a975793dff864076705f436c4fc7e5 Mon Sep 17 00:00:00 2001
+From: Hugo Duncan <hugo@hugoduncan.org>
+Date: Fri, 24 Feb 2012 11:23:01 -0500
+Subject: [PATCH] Fix CLJ-788 add line member to CompilerException
+
+---
+ src/jvm/clojure/lang/Compiler.java | 3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/src/jvm/clojure/lang/Compiler.java b/src/jvm/clojure/lang/Compiler.java
+index bfc8274..e1c84d5 100644
+--- a/src/jvm/clojure/lang/Compiler.java
++++ b/src/jvm/clojure/lang/Compiler.java
+@@ -6245,9 +6245,12 @@ private static Expr analyze(C context, Object form, String name) {
+ static public class CompilerException extends RuntimeException{
+ final public String source;
+
++ final public int line;
++
+ public CompilerException(String source, int line, Throwable cause){
+ super(errorMsg(source, line, cause.toString()), cause);
+ this.source = source;
++ this.line = line;
+ }
+
+ public String toString(){
+--
+1.7.3.4
+
View
@@ -36,3 +36,4 @@ clj-924-unicode-invalid-digit-patch2-updated.txt
transient-disj-patch1-updated.txt
clj-700-patch2-updated.txt
clj-157-better-err-msgs-for-defn-fn-syntax-errors-patch2.txt
+clj-788-add-line-member-and-getter-to-CompilerException-patch.txt

0 comments on commit 286546e

Please sign in to comment.