Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFParse Constant Pool (Create bootstrapMethods attribute + really necessary methods?) #67

Open
agadfs opened this issue Dec 19, 2024 · 0 comments

Comments

@agadfs
Copy link

agadfs commented Dec 19, 2024


Yann 24/11/30: No BootstrapMethods Attribute

"I don't create/populate the BootstrapMethods attribute, so there's nothing to do right now with the index at this.d_idxBootstrapMethod."

return this.this$0.getAsString(this.d_idxBootstrapMethod) + " " + this.this$0.getAsString(this.d_idxNameAndType);


Create the BootstrapMethods attribute


Is this method necessary?

String getNameAsJava() {return this.this$0.getAsString(this.d_idxDescriptor);}


Is this method necessary?

String getTypeAsJava() {return CPUtils.internal2java(this.this$0.getAsString(this.d_idxDescriptor));}


Why this method necessary?
public String getAsString(int var1) {return this.get(var1).getAsString();}

Yann 24/11/30: Bug?

It used to be simply:
return this.get(var1).getAsString();

Why is this test necessary?
final ConstantPoolEntry entry = this.get(var1); if (entry == null) { return this.get(0).getAsString(); } else { return this.get(var1).getAsString(); }


@agadfs agadfs changed the title (Really necessary methods?) CFParse Constant Pool (Create bootstrapMethods attribute + really necessary methods?) CFParse Constant Pool Dec 19, 2024
@agadfs agadfs changed the title (Create bootstrapMethods attribute + really necessary methods?) CFParse Constant Pool CFParse Constant Pool (Create bootstrapMethods attribute + really necessary methods?) Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant