File tree Expand file tree Collapse file tree
liquidjava-verifier/src/main/java/liquidjava/rj_language/ast Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public int hashCode() {
9393 final int prime = 31 ;
9494 int result = 1 ;
9595 result = prime * result + ((getArgs () == null ) ? 0 : getArgs ().hashCode ());
96- result = prime * result + ((name == null ) ? 0 : name .hashCode ());
96+ result = prime * result + ((name == null ) ? 0 : Utils . getSimpleName ( name ) .hashCode ()); // same here
9797 return result ;
9898 }
9999
@@ -114,7 +114,10 @@ public boolean equals(Object obj) {
114114 if (name == null ) {
115115 return other .name == null ;
116116 } else {
117- return name .equals (other .name );
117+ // prefixes are inconsistent for refined class ghost calls: some use the
118+ // original class prefix, others use the caller class prefix
119+ // for now we compare simple names, but prefix handling should be fixed instead of having this workaround
120+ return other .name != null && Utils .getSimpleName (name ).equals (Utils .getSimpleName (other .name ));
118121 }
119122 }
120123}
You can’t perform that action at this time.
0 commit comments