Thanks Evgeny, Any idea what is the ideal alternative for jmockit, is it 
powe mockito

On Friday, 27 October 2023 at 12:55:37 UTC+5:30 Evgeny Mandrikov wrote:

> Hi,
>
> Seems that you use JMockit.
> And JMockit doesn't fully support all Java 11+ features for already 4 
> years - see 
> https://github.com/jmockit/jmockit1/issues/615#issuecomment-501009439
> Also FYI the last change to JMockit was 3 years ago - see 
> https://github.com/jmockit/jmockit1/commit/5c6a2dfc6042ebf8d99770a7e9167bf3c26149e8
>  
> and https://jmockit.github.io/changes.html
>
>
> On Friday, October 27, 2023 at 9:08:43 AM UTC+2 [email protected] wrote:
>
>> Hi Marc,
>>
>> I cannot share the whole trace for client confidentiality. But in 
>> general, below are the configurations:
>>
>> Working configuration:
>>
>> <maven.compiler.source>13</maven.compiler.source>
>> <maven.compiler.target>13</maven.compiler.target>
>> <maven.compiler.version>3.8.1</maven.compiler.version>
>> <jacoco.version>0.8.3</jacoco.version>
>>
>>
>> After changing it to
>>
>> <maven.compiler.source>17</maven.compiler.source>
>> <maven.compiler.target>17</maven.compiler.target>
>> <maven.compiler.version>3.8.1</maven.compiler.version>
>> <jacoco.version>0.8.11</jacoco.version>
>>
>> It is giving below error while creating 
>>
>> new MockUp<Modelclass>() {
>>             @Mock
>>             HttpResponseMessage buildResponse(HttpStatus status, String 
>> message) {
>>                 return responseMessage;
>>             }
>>  };
>>
>> [ERROR]   RequestHandlerTest.testExecuteA » ArrayIndexOutOfBounds Index 
>> 3847 out of bounds for length 1874
>> [ERROR]   RequestHandlerTest.testExecuteAWithException » 
>> ArrayIndexOutOfBounds Index 3847 out of bounds for length 1874
>> [ERROR]   RequestHandlerTest.testExecuteB » ArrayIndexOutOfBounds Index 
>> 3847 out of bounds for length 1874
>> [ERROR]   RequestHandlerTest.testExecuteBWithException » 
>> ArrayIndexOutOfBounds Index 3847 out of bounds for length 1874
>> [ERROR]   testRunEmptyBody:52 » ArrayIndexOutOfBounds Index 51966 out of 
>> bounds for length 146
>> [ERROR]   testRunEmptyHeader:73 » ArrayIndexOutOfBounds Index 51966 out 
>> of bounds for length 146
>> [ERROR]   testRunEmptyHeader:73 » ArrayIndexOutOfBounds Index 51966 out 
>> of bounds for length 146
>> [ERROR]   testRunEmpty:125 » ArrayIndexOutOfBounds Index 51966 out of 
>> bounds for length 146
>> [ERROR]   testRunEmpty:125 » ArrayIndexOutOfBounds Index 51966 out of 
>> bounds for length 146
>> [ERROR]   testRunInvalid:156 » ArrayIndexOutOfBounds Index 51966 out of 
>> bounds for length 146
>> [ERROR]   testRunInvalidXml:94 » ArrayIndexOutOfBounds Index 51966 out of 
>> bounds for length 146
>> [ERROR]   testRunInvalidateXml:195 » ArrayIndexOutOfBounds Index 51966 
>> out of bounds for length 146
>> [ERROR]   mock_env_vars:41 » ArrayIndexOutOfBounds Index 51966 out of 
>> bounds for length 165
>>
>> On Friday, 27 October 2023 at 11:36:12 UTC+5:30 Marc R. Hoffmann wrote:
>>
>>> Hi Anij,
>>>
>>> can you please provide a the full stack trace? JaCoCo supports all Java 
>>> versions from 5 to 22.
>>>
>>> Regards,
>>> -marc
>>>
>>>
>>>
>>> On 27. Oct 2023, at 08:04, Anuj Gupta <[email protected]> wrote:
>>>
>>> HI Team
>>>
>>> I have integrated Jacoco with Java 17 but it is giving Array index out 
>>> of bound error. When I modified the Java version to 11, it is perfectly 
>>> generating the reports.
>>>
>>> Thanks
>>> Anuj Gupta
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "JaCoCo and EclEmma Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jacoco/baee81cf-a63c-49f5-834e-acfe564b1390n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jacoco/baee81cf-a63c-49f5-834e-acfe564b1390n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/7d8a91da-960a-43a6-9f3d-12c14c4cb268n%40googlegroups.com.

Reply via email to