Coder Social home page Coder Social logo

Comments (4)

sarser2048 avatar sarser2048 commented on May 20, 2024

There is a similar problem when analyzing the following method:

<com.fasterxml.jackson.core.io.ContentReference: com.fasterxml.jackson.core.io.ContentReference 'unknown'()>

from soot.

MarcMil avatar MarcMil commented on May 20, 2024

This happens when the method name is a reserved name in Jimple:

private void setReservedNames() {

Otherwise we would have a problem when you write out Jimple files and try to read them back in. See the quotedNameOf method.

from soot.

canliture avatar canliture commented on May 20, 2024

look here, same problem: #1697

from soot.

sarser2048 avatar sarser2048 commented on May 20, 2024

@MarcMil Thanks for your kind reply. Yes, I know Soot has the reserved names. However, the method quotedNameOf cannot work well when I used it.

For the following two used method signatures:

1st signature
<com.fasterxml.jackson.databind.introspect.CollectorBase: com.fasterxml.jackson.databind.introspect.AnnotationCollector collectDefaultAnnotations(com.fasterxml.jackson.databind.introspect.AnnotationCollector,java.lang.annotation.Annotation[])

2nd signature
<com.fasterxml.jackson.core.util.JacksonFeatureSet: com.fasterxml.jackson.core.util.JacksonFeatureSet with(com.fasterxml.jackson.core.util.JacksonFeature)>

The first signature can be converted to (annotation -> 'annotation'), but we cannot get the quoted version (with -> 'with') of the second signuatre when invoke Scene.v().quotedNameOf().

Soot may only use dot to seperate the given name, however, we often use method signature to get a resovled SootMethod. I think the method quotedNameOf should be improved.

And, another problem is, not all reserved names will be changed to quoted version, e.g., void.

from soot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.