@@ -4498,12 +4498,12 @@ static Expr parse(C context, ISeq form, String name) {
44984498
44994499 if (RT .second (form ) instanceof Symbol ) {
45004500 nm = (Symbol ) RT .second (form );
4501- name = nm .name + "__" + RT .nextID ();
4501+ name = nm .name + "__" + RT .nextID (basename );
45024502 } else {
45034503 if (name == null )
4504- name = "fn__" + RT .nextID ();
4504+ name = "fn__" + RT .nextID (basename );
45054505 else if (enclosingMethod != null )
4506- name += "__" + RT .nextID ();
4506+ name += "__" + RT .nextID (basename );
45074507 }
45084508
45094509 String simpleName = munge (name ).replace ("." , "_DOT_" );
@@ -4603,7 +4603,7 @@ else if(methodArray[f.reqParms.count()] == null)
46034603 fn .protocolCallsites = (IPersistentVector ) PROTOCOL_CALLSITES .deref ();
46044604 fn .varCallsites = (IPersistentSet ) VAR_CALLSITES .deref ();
46054605
4606- fn .constantsID = RT .nextID ();
4606+ fn .constantsID = RT .nextID (basename );
46074607// DynamicClassLoader loader = (DynamicClassLoader) LOADER.get();
46084608// loader.registerConstants(fn.constantsID, fn.constants.toArray());
46094609 }
@@ -6821,7 +6821,7 @@ public void emit(C context, ObjExpr objx, GeneratorAdapter gen){
68216821 BindingInit bi = (BindingInit ) bis .first ();
68226822 String lname = bi .binding .name ;
68236823 if (lname .endsWith ("__auto__" ))
6824- lname += RT .nextID ();
6824+ lname += RT .nextID (currentNS (). getName (). toString () );
68256825 Class primc = maybePrimitiveType (bi .init );
68266826 if (primc != null )
68276827 gen .visitLocalVariable (lname , Type .getDescriptor (primc ), null , loopLabel , end ,
@@ -7052,7 +7052,7 @@ public void doEmit(C context, ObjExpr objx, GeneratorAdapter gen, boolean emitUn
70527052 BindingInit bi = (BindingInit ) bis .first ();
70537053 String lname = bi .binding .name ;
70547054 if (lname .endsWith ("__auto__" ))
7055- lname += RT .nextID ();
7055+ lname += RT .nextID (currentNS (). getName (). toString () );
70567056 Class primc = maybePrimitiveType (bi .init );
70577057 if (primc != null )
70587058 gen .visitLocalVariable (lname , Type .getDescriptor (primc ), null , bindingLabels .get (bi ), end ,
@@ -7695,7 +7695,7 @@ else if((form instanceof IType) ||
76957695 && ((Symbol ) RT .first (form )).name .startsWith ("def" ))))
76967696 {
76977697 ObjExpr fexpr = (ObjExpr ) analyze (C .EXPRESSION , RT .list (FN , PersistentVector .EMPTY , form ),
7698- "eval" + RT .nextID ());
7698+ "eval" + RT .nextID (currentNS (). getName (). toString () ));
76997699 IFn fn = (IFn ) fexpr .eval ();
77007700 return fn .invoke ();
77017701 }
@@ -8475,7 +8475,7 @@ public Expr parse(C context, Object frm) {
84758475 String basename = enclosingMethod != null ?
84768476 (trimGenID (enclosingMethod .objx .name ) + "$" )
84778477 : (munge (currentNS ().name .name ) + "$" );
8478- String simpleName = "reify__" + RT .nextID ();
8478+ String simpleName = "reify__" + RT .nextID (currentNS (). getName (). toString () );
84798479 String classname = basename + simpleName ;
84808480
84818481 ISeq rform = RT .next (form );
@@ -8594,7 +8594,7 @@ VAR_CALLSITES, emptyVarCallSites(),
85948594 ret .keywords = (IPersistentMap ) KEYWORDS .deref ();
85958595 ret .vars = (IPersistentMap ) VARS .deref ();
85968596 ret .constants = (PersistentVector ) CONSTANTS .deref ();
8597- ret .constantsID = RT .nextID ();
8597+ ret .constantsID = RT .nextID (currentNS (). getName (). toString () );
85988598 ret .keywordCallsites = (IPersistentVector ) KEYWORD_CALLSITES .deref ();
85998599 ret .protocolCallsites = (IPersistentVector ) PROTOCOL_CALLSITES .deref ();
86008600 ret .varCallsites = (IPersistentSet ) VAR_CALLSITES .deref ();
0 commit comments