]> source.dussan.org Git - javassist.git/commit
Fix issue in no-standard [new] instruction replace 448/head
authorLayHool <23442547+layhool@users.noreply.github.com>
Thu, 16 Mar 2023 03:01:40 +0000 (11:01 +0800)
committerGitHub <noreply@github.com>
Thu, 16 Mar 2023 03:01:40 +0000 (11:01 +0800)
commite4470716576eaa37cc979c4345c7af33ec987aa7
treedc88c3cfaccc51d9b66abe2d6418c64d8daea8ab
parent700be6f6f9546e8af049b1a763ce27f1fde5955d
Fix issue in no-standard [new] instruction replace

A standard *new* construct bytecode will generate like:

```
new okhttp3/OkHttpClient
dup
invokespecial okhttp3/OkHttpClient <init> ()V
astore 1
```

but a few part of compiler will generate no-standard bytecode like:

```
new okhttp3/OkHttpClient
dup
astore 1
invokespecial okhttp3/OkHttpClient <init> ()V
```
which will cause javassist build stack error.

This commit will fix it
src/main/javassist/expr/NewExpr.java