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

(v0.13.0-release) VarargsCollectorHandle.asType throws WrongMethodTypeException #5001

Merged
merged 1 commit into from
Mar 6, 2019

Conversation

JasonFengJ9
Copy link
Member

VarargsCollectorHandle.asType() throws WrongMethodTypeException

Convert IllegalArgumentException to WrongMethodTypeException within VarargsCollectorHandle.asType().

This PR passes the test within #4937.

Note: Java doc states that java.lang.invoke.MethodHandle can throws NullPointerException if newType is a null reference or WrongMethodTypeException if the conversion cannot be made. There is no IllegalArgumentException thrown.
It appears there are other cases that IllegalArgumentException might be thrown. I would like to leave it as is for now since no test complains or another PR if required.

Ported from #4977

Reviewer: @DanHeidinga

Signed-off-by: Jason Feng fengj@ca.ibm.com

Convert IllegalArgumentException to WrongMethodTypeException within
VarargsCollectorHandle.asType().


Signed-off-by: Jason Feng <fengj@ca.ibm.com>
Copy link
Member

@DanHeidinga DanHeidinga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - same change merged to master already

@DanHeidinga DanHeidinga merged commit 62875ca into eclipse-openj9:v0.13.0-release Mar 6, 2019
@pshipton pshipton added this to the Release 0.13.0 (Java 12) milestone Mar 6, 2019
@JasonFengJ9 JasonFengJ9 deleted the portmhwmte branch March 22, 2019 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants