Skip to content

Commit

Permalink
Accept qualified STR and RAW
Browse files Browse the repository at this point in the history
  • Loading branch information
JimLaskey committed Oct 16, 2023
1 parent a4a6d23 commit b95c799
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,12 @@ JCExpression bsmProcessCall() {
}

boolean isNamedProcessor(Name name) {
if (processor instanceof JCIdent ident && ident.sym instanceof VarSymbol varSym) {
Symbol sym = switch (processor) {
case JCIdent ident -> ident.sym;
case JCFieldAccess access -> access.sym;
default -> null;
};
if (sym instanceof VarSymbol varSym) {
if (varSym.flags() == (Flags.PUBLIC | Flags.FINAL | Flags.STATIC) &&
varSym.name == name &&
types.isSameType(varSym.owner.type, syms.stringTemplateType)) {
Expand Down

0 comments on commit b95c799

Please sign in to comment.