RFR 8011805: Update sun.tools.java class file reading/writing support to include the new constant pool entries (including invokedynamic) (original) (raw)
Remi Forax forax at univ-mlv.fr
Thu Apr 11 21:45:43 UTC 2013
- Previous message: RFR 8011805: Update sun.tools.java class file reading/writing support to include the new constant pool entries (including invokedynamic)
- Next message: RFR 8011805: Update sun.tools.java class file reading/writing support to include the new constant pool entries (including invokedynamic)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 04/11/2013 11:23 PM, Robert Field wrote:
Thank you Mike, Alan, and Brian for your reviews, and others for your assistance.
Updated webrev: http://cr.openjdk.java.net/~rfield/80118052 Changes are all in the test: * Removed unused testWrite and related code. * Used correct copyright. * Added finally clauses which close file and clean-up. * Simplified code, removing rmic copied code. * Fixed @test comment format. -Robert
Hi Robert, in BinaryConstantPool, using a local variable when writing the constant pool constants makes the code easier to read, IMO.
case CONSTANT_METHODHANDLE:
case CONSTANT_METHODTYPE:
case CONSTANT_INVOKEDYNAMIC: {
byte[] array = (byte[])x;
out.write(array, 0, array.length);
break;
}
otherwise, thumb up.
Rémi
On 04/10/13 21:24, Robert Field wrote: Currently blocking lambda library pushes. Internal class reader used by rmic does not support new constant pool constant types:
CONSTANTMETHODHANDLE = 15; CONSTANTMETHODTYPE = 16; CONSTANTINVOKEDYNAMIC = 18;
Please review the fix for CR: http://bugs.sun.com/bugdatabase/viewbug.do?bugid=8011805 Webrev: http://cr.openjdk.java.net/~rfield/8011805/
- Previous message: RFR 8011805: Update sun.tools.java class file reading/writing support to include the new constant pool entries (including invokedynamic)
- Next message: RFR 8011805: Update sun.tools.java class file reading/writing support to include the new constant pool entries (including invokedynamic)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]