Skip to content

Commit

Permalink
updated ASM version; fixed JDK 9 String concatenation bug (invokedyna…
Browse files Browse the repository at this point in the history
…mic)
  • Loading branch information
sdaschner committed Oct 13, 2018
1 parent 42e78ac commit 7e0f013
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-all</artifactId>
<version>5.1</version>
<artifactId>asm</artifactId>
<version>6.2.1</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId>
<version>6.2.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void visitMethodInsn(int opcode, String owner, String name, String desc,
@Override
public void visitInvokeDynamicInsn(String name, String desc, Handle bsm, Object... bsmArgs) {
final Handle handle = Stream.of(bsmArgs).filter(a -> a instanceof Handle).map(a -> (Handle) a)
.findAny().orElseThrow(() -> new IllegalStateException("No invoke dynamic handle found."));
.findAny().orElse(bsm);

methodResult.getInstructions().add(buildInvokeDynamic(className, name, desc, handle, getLastLabel()));
}
Expand Down

0 comments on commit 7e0f013

Please sign in to comment.