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

Fix issue #19 #22

Closed
wants to merge 2 commits into from
Closed

Fix issue #19 #22

wants to merge 2 commits into from

Conversation

ducnh298
Copy link

Issue #19
Your response return Map<String, String+ArrayList>:

unknown

In src/main/java/com/shipengine/InternalClient.java
func checkResponseForErrors( )
you initiate a Map<String, ArrayList> to get that response:

11unk11nown

then this ClassCastException's thrown (should be ShipengineException)

class java.lang.String cannot be cast to class java.util.ArrayList (java.lang.String and java.util.ArrayList are in module java.base of loader 'bootstrap')

I suggest using Object instead of ArrayList.
Work just fine for me.

Add define type for object when get from map
@sushithegreat
Copy link
Contributor

Fixed in #24

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

Successfully merging this pull request may close these issues.

2 participants