--- a/test/langtools/tools/javac/lambda/ByteCodeTest.java Wed Jan 31 10:55:49 2018 -0800
+++ b/test/langtools/tools/javac/lambda/ByteCodeTest.java Fri Sep 08 10:46:46 2017 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 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
@@ -541,6 +541,22 @@
}
@Override
+ public String visitDynamicConstant(CONSTANT_Dynamic_info c, Integer p) {
+
+ String value = slist.get(p);
+ if (value == null) {
+ try {
+ value = bsmMap.get(c.bootstrap_method_attr_index) + " "
+ + visit(cfpool.get(c.name_and_type_index), c.name_and_type_index);
+ slist.set(p, value);
+ } catch (ConstantPoolException ex) {
+ ex.printStackTrace();
+ }
+ }
+ return value;
+ }
+
+ @Override
public String visitLong(CONSTANT_Long_info c, Integer p) {
String value = slist.get(p);