RFR: JDK-8230918: j.l.NASE in javap
Jonathan Gibbons
jonathan.gibbons at oracle.com
Wed Aug 26 16:51:44 UTC 2020
+1
-- Jon
On 8/25/20 10:54 AM, Vicente Romero wrote:
> ping
>
> On 8/20/20 5:30 PM, Vicente Romero wrote:
>> Hi Jon,
>>
>> Thanks for the review, I have updated the review to [1] to address
>> your comments,
>>
>> Vicente
>>
>> [1] http://cr.openjdk.java.net/~vromero/8230918/webrev.01/
>>
>>
>>
>> On 8/19/20 8:49 PM, Jonathan Gibbons wrote:
>>> Hi Vicente,
>>>
>>> It seems wrong to hijack an existing exception for an unrelated
>>> use. There's no IO condition that warrants the use of
>>> `java.io.IOException`. The problem is that for better or worse,
>>> javap cannot handle this probably-malformed class file. That
>>> deserves some appropriate exception, and a new one if there is
>>> nothing appropriate that is already available to use.
>>>
>>> -- Jon
>>>
>>> On 8/19/20 5:24 PM, Vicente Romero wrote:
>>>> Please review fix for [1] at [2]. The fix is making javac fail with
>>>> an error message if an attribute has a length too big to be processed.
>>>>
>>>> Thanks,
>>>> Vicente
>>>>
>>>> https://bugs.openjdk.java.net/browse/JDK-8230918
>>>> http://cr.openjdk.java.net/~vromero/8230918/webrev.00/
>>
>
More information about the compiler-dev
mailing list