equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
539 } |
539 } |
540 return value; |
540 return value; |
541 } |
541 } |
542 |
542 |
543 @Override |
543 @Override |
|
544 public String visitDynamicConstant(CONSTANT_Dynamic_info c, Integer p) { |
|
545 |
|
546 String value = slist.get(p); |
|
547 if (value == null) { |
|
548 try { |
|
549 value = bsmMap.get(c.bootstrap_method_attr_index) + " " |
|
550 + visit(cfpool.get(c.name_and_type_index), c.name_and_type_index); |
|
551 slist.set(p, value); |
|
552 } catch (ConstantPoolException ex) { |
|
553 ex.printStackTrace(); |
|
554 } |
|
555 } |
|
556 return value; |
|
557 } |
|
558 |
|
559 @Override |
544 public String visitLong(CONSTANT_Long_info c, Integer p) { |
560 public String visitLong(CONSTANT_Long_info c, Integer p) { |
545 |
561 |
546 String value = slist.get(p); |
562 String value = slist.get(p); |
547 if (value == null) { |
563 if (value == null) { |
548 value = Long.toString(c.value); |
564 value = Long.toString(c.value); |