#Required type is 'capture of ?', provided one is 'capture of ?'. Still doesn't work

12 messages · Page 1 of 1 (latest)

deft falconBOT
#

This post has been reserved for your question.

Hey @tawdry sluice! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

tawdry sluice
rugged chasm
#

Yeah, you can't give unknown type to something that doesn't know what type it accepts

#

That would be much more enjoyable in real life than in Java, mind

tawdry sluice
#

so can I not have a Map<String, ?> as a method parameter?

#

and if not, what solution would you recommend?

#

Oh I guess I could pass it as a Map<String, Object>

rugged chasm
#

Not sure what you're asking. You cannot add any value to a Map<String, ?>

#

You can pass it as parameter as much as you want

tawdry sluice
#

thanks for the help!

deft falconBOT
# tawdry sluice thanks for the help!

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.