RFR: 8255542: Attribute length of Module, ModulePackages and other attributes is ignored [v2]
Alan Bateman
alanb at openjdk.java.net
Thu Dec 3 15:59:00 UTC 2020
On Thu, 3 Dec 2020 15:55:15 GMT, Rémi Forax <github.com+828220+forax at openjdk.org> wrote:
>> Hi Rémi, I do not think that that is required. `DataInputStream.readUTF` will call back into `this` to do the reading so the `count` should be properly incremented? Or maybe I'm missing something. Best regards!
>
> Thanks,
> i should have read the code more carefully.
The module-info is read sequentially so the constant pool is read (and indexed) before the attributes are read. So any references to UTF-8 constants doesn't involve random access. But maybe you mean something else?
-------------
PR: https://git.openjdk.java.net/jdk/pull/1407
More information about the core-libs-dev
mailing list