changeset 13:23bab4083830

jasm fails to assemble to following instruction: invokedynamic REF_invokeStatic:bootstrap:()V:target:()V int 1, contributed by: leonid.kuskov@oracle.com
author afedorch
date Thu, 19 Oct 2017 14:44:57 -0700
parents c52c3f68bfba
children 4ea0c7e47221
files build/build.properties build/build.xml src/org/openjdk/asmtools/jasm/ParserCP.java
diffstat 3 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/build/build.properties	Tue Oct 10 16:53:12 2017 -0700
+++ b/build/build.properties	Thu Oct 19 14:44:57 2017 -0700
@@ -1,4 +1,4 @@
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -29,4 +29,4 @@
 javac.deprecation=false
 
 # path to output directory
-BUILD_DIR = ../../asmtools-6.0-build
+BUILD_DIR = ../../asmtools-${PRODUCT_VERSION}-build
--- a/build/build.xml	Tue Oct 10 16:53:12 2017 -0700
+++ b/build/build.xml	Thu Oct 19 14:44:57 2017 -0700
@@ -27,12 +27,16 @@
 
 <project name="asmtools" default="build" basedir=".">
 
+    <!--****************************************************************-->
+    <!--Property & FileSet Definitions					                -->
+    <!--****************************************************************-->
+    <concat destfile="asmtools.properties" >
+        <fileset file="build.properties" />
+        <fileset file="productinfo.properties" />
+    </concat>
+    <property file="asmtools.properties"/>
+    <delete file="asmtools.properties"/>
 
-    <!--****************************************************************-->
-    <!--Property & FileSet Definitions					-->
-    <!--****************************************************************-->
-    <property file="build.properties"/>
-    <property file="productinfo.properties"/>
     <property name="proj.build.product.version" value="${PRODUCT_VERSION}"/>
     <property name="proj.build.product.name.prefix" value="${PRODUCT_NAME}"/>
     <property name="proj.build.product.name" value="${proj.build.product.name.prefix}"/>
--- a/src/org/openjdk/asmtools/jasm/ParserCP.java	Tue Oct 10 16:53:12 2017 -0700
+++ b/src/org/openjdk/asmtools/jasm/ParserCP.java	Thu Oct 19 14:44:57 2017 -0700
@@ -455,10 +455,8 @@
                         if (sep) scanner.expect(Token.COMMA);
                         bsm_args.add(parseConstRef(null));
                         scanner.idValue = null; // Clear tag
-                        bsm_args.add(parseConstRef(null));
                     }
 
-
                     BootstrapMethodData bsmData = new BootstrapMethodData(MHCell, bsm_args);
                     parser.cd.addBootstrapMethod(bsmData);
                     obj = new ConstantPool.ConstValue_IndyPair(bsmData, NapeCell);