I start getting StringIndexOutOfBoundException since svn rev 1113 (use
source name in smap). Though I'm not sure if this a bug in clojure or
in user code, it appears that SOURCE var always have a root bound
"NO_SOURCE_FILE". Shouldn't below code check against that, instead of
just null?

Index: src/jvm/clojure/lang/Compiler.java
===================================================================
--- src/jvm/clojure/lang/Compiler.java  (revision 1118)
+++ src/jvm/clojure/lang/Compiler.java  (working copy)

@@ -2993,7 +2993,7 @@

                int lineBefore = (Integer) LINE_BEFORE.get();
                int lineAfter = (Integer) LINE_AFTER.get() + 1;

-               if(source != null && SOURCE_PATH.get() != null)
+               if(source != null && !source.equals("NO_SOURCE_FILE") &&
SOURCE_PATH.get() != null)
                        {
                //cv.visitSource(source, null);
                        String smap = "SMAP\n" +
                               source.substring(0,source.lastIndexOf
('.')) + ".java\n" +

regards,
- Feng
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to