]> source.dussan.org Git - aspectj.git/commitdiff
extra diagnostics for weaverstate problem
authoraclement <aclement>
Mon, 11 Feb 2008 13:49:10 +0000 (13:49 +0000)
committeraclement <aclement>
Mon, 11 Feb 2008 13:49:10 +0000 (13:49 +0000)
weaver/src/org/aspectj/weaver/WeaverStateInfo.java

index 6c4dcc1df1fb7ba25d5a9d35b10e2ce13b6e6f80..9b10517a8ac68bd00e479a4be2a3212c776720d0 100644 (file)
@@ -139,7 +139,7 @@ public class WeaverStateInfo {
                            readAnyReweavableData(wsi,s);
                                return wsi;
                } 
-               throw new RuntimeException("bad WeaverState.Kind: " + b);
+               throw new RuntimeException("bad WeaverState.Kind: " + b+".  File was :"+(context==null?"unknown":context.makeSourceLocation(0,0)));
        }