RFR: 8255757: Javac emits duplicate pool entries on array::clone [v4]

Guoxiong Li github.com+13688759+lgxbslgx at openjdk.java.net
Fri Jan 1 09:40:15 UTC 2021


On Fri, 1 Jan 2021 02:22:19 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

>> Guoxiong Li has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix copyright. Adjust import statements.
>
> test/langtools/tools/javac/classfiles/T8255757/T8255757.java line 99:
> 
>> 97:         }
>> 98:         if (num != 1) {
>> 99:             throw new AssertionError("The number of the pool entries on array::clone is not right.");
> 
> In any messages like this, in any test, it is good practice to display the expected value and the actual value.  Tests are often/typically run in batch jobs on remote servers, and it can sometimes be difficult to recreate a failure, so always look to give as much helpful info as possible when any failure is detected.

Fixed.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1912


More information about the compiler-dev mailing list