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

Jimple parsing exception #2018

Open
michaelphop opened this issue Nov 9, 2023 · 0 comments
Open

Jimple parsing exception #2018

michaelphop opened this issue Nov 9, 2023 · 0 comments

Comments

@michaelphop
Copy link

michaelphop commented Nov 9, 2023

I have the following jimple code created by soot:

        $r4 = dynamicinvoke "apply" <java.util.function.Function ()>() <java.lang.invoke.LambdaMetafactory: java.lang.invoke.CallSite metafactory(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.invoke.MethodType,java.lang.invoke.MethodHandle,java.lang.invoke.MethodType)>(methodtype: java.lang.Object __METHODTYPE__(java.lang.Object), methodhandle: "REF_INVOKE_STATIC" <org.springframework.boot.SpringApplication: org.springframework.boot.BootstrapRegistryInitializer lambda$getBootstrapRegistryInitializersFromSpringFactories$0(org.springframework.boot.Bootstrapper)>, methodtype: org.springframework.boot.BootstrapRegistryInitializer __METHODTYPE__(org.springframework.boot.Bootstrapper));

When converting it to class (from jimple file) I get the exception: "[163,328] expecting: ')'" here:

throw new RuntimeException("Error: Failed when parsing class " + className + ".", e);

Caused by: soot.jimple.parser.parser.ParserException: [163,328] expecting: ')'
	at soot.jimple.parser.parser.Parser.parse(Parser.java:1455)
	at soot.jimple.parser.JimpleAST.<init>(JimpleAST.java:60)
	at soot.JimpleClassSource.resolve(JimpleClassSource.java:64)

What can be the reason? (I made sure that the parentheses are balanced )

I passed this configuration as well:

set_src_prec(Options.src_prec_jimple)
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