Skip to content

Commit

Permalink
8268124: moved cases into separate lines in DirectMethodHandleDescImp…
Browse files Browse the repository at this point in the history
…l part II
  • Loading branch information
pconcannon committed Jun 9, 2021
1 parent ccc9db7 commit df5b34e
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -139,9 +139,11 @@ public String lookupDescriptor() {
SPECIAL,
INTERFACE_VIRTUAL,
INTERFACE_SPECIAL -> invocationType.dropParameterTypes(0, 1).descriptorString();
case STATIC, INTERFACE_STATIC -> invocationType.descriptorString();
case STATIC,
INTERFACE_STATIC -> invocationType.descriptorString();
case CONSTRUCTOR -> invocationType.changeReturnType(CD_void).descriptorString();
case GETTER, STATIC_GETTER -> invocationType.returnType().descriptorString();
case GETTER,
STATIC_GETTER -> invocationType.returnType().descriptorString();
case SETTER -> invocationType.parameterType(1).descriptorString();
case STATIC_SETTER -> invocationType.parameterType(0).descriptorString();
default -> throw new IllegalStateException(kind.toString());
Expand Down

0 comments on commit df5b34e

Please sign in to comment.