@Adam Thanks for the report !!
I’ve looked and reproduced the issue you are seeing with mockito 2.2.3 (bb 1.4.26) and 2.2.5 (bb 1.4.33). Regardless of the JDK.It seems related to how kohsuke/github-api generates byte code for backward compatibility, this is highly unusual and may produce valid bytecode but unmet bytecode patterns for mockito / bytebuddy.
For reference the tool is called bridge-method-injector, more on the website
The classes you are mentioning are modified by this tool :
GHIssues
annotated by @WithBridgeMethods(void.class)
GHRepository
that inherits GHObject
which also annotated by @WithBridgeMethods(value=String.class, adapterMethod="intToString")
It works with 1.10.19, because CGLIB is far less intelligent regarding bridge methods.
At the moment mocking these classes is not yet possible with mockito 2. I will fill an issue on mockito project.
— Brice
--
You received this message because you are subscribed to the Google Groups "mockito" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mockito+unsubscribe@googlegroups.com.
To post to this group, send email to moc...@googlegroups.com.
Visit this group at https://groups.google.com/group/mockito.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/951298fb-3532-4b37-8553-5051c2edc32d%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mockito+u...@googlegroups.com.
To post to this group, send email to moc...@googlegroups.com.
Visit this group at https://groups.google.com/group/mockito.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/951298fb-3532-4b37-8553-5051c2edc32d%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mockito" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mockito+u...@googlegroups.com.
To post to this group, send email to moc...@googlegroups.com.
Visit this group at https://groups.google.com/group/mockito.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/CALTMA7vmxyBH%3D-We09d2d29Mkt5v5gW1FL%3DCnsE%2B_C4%2BX9Eq6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to mockito+unsubscribe@googlegroups.com.
To post to this group, send email to moc...@googlegroups.com.
Visit this group at https://groups.google.com/group/mockito.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/951298fb-3532-4b37-8553-5051c2edc32d%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mockito" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mockito+unsubscribe@googlegroups.com.
To post to this group, send email to moc...@googlegroups.com.
Visit this group at https://groups.google.com/group/mockito.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/CALTMA7vmxyBH%3D-We09d2d29Mkt5v5gW1FL%3DCnsE%2B_C4%2BX9Eq6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--Szczepan FaberFounder @ mockito.org | Twitter @ szczepiq
--
You received this message because you are subscribed to the Google Groups "mockito" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mockito+unsubscribe@googlegroups.com.
To post to this group, send email to moc...@googlegroups.com.
Visit this group at https://groups.google.com/group/mockito.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/CADb1c%2BPnVy9S9a0PSNtR1xtm--HsUytkY5-Ay%3DJm0tQ0pqeTig%40mail.gmail.com.
-- Brice
To unsubscribe from this group and stop receiving emails from it, send an email to mockito+u...@googlegroups.com.
To post to this group, send email to moc...@googlegroups.com.
Visit this group at https://groups.google.com/group/mockito.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/951298fb-3532-4b37-8553-5051c2edc32d%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mockito" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mockito+u...@googlegroups.com.
To post to this group, send email to moc...@googlegroups.com.
Visit this group at https://groups.google.com/group/mockito.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/CALTMA7vmxyBH%3D-We09d2d29Mkt5v5gW1FL%3DCnsE%2B_C4%2BX9Eq6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--Szczepan FaberFounder @ mockito.org | Twitter @ szczepiq
--
You received this message because you are subscribed to the Google Groups "mockito" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mockito+u...@googlegroups.com.
To post to this group, send email to moc...@googlegroups.com.
Visit this group at https://groups.google.com/group/mockito.
To unsubscribe from this group and stop receiving emails from it, send an email to mockito+unsubscribe@googlegroups.com.
To post to this group, send email to moc...@googlegroups.com.
Visit this group at https://groups.google.com/group/mockito.
To view this discussion on the web visit https://groups.google.com/d/msgid/mockito/6576af95-7a82-4396-acc8-13a4fe0a1a10%40googlegroups.com.