equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2007, 2016, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
122 println("// " + stringValue(info)); |
122 println("// " + stringValue(info)); |
123 return 1; |
123 return 1; |
124 } |
124 } |
125 |
125 |
126 public Integer visitMethodHandle(CONSTANT_MethodHandle_info info, Void p) { |
126 public Integer visitMethodHandle(CONSTANT_MethodHandle_info info, Void p) { |
127 print("#" + info.reference_kind.tag + ":#" + info.reference_index); |
127 print(info.reference_kind.tag + ":#" + info.reference_index); |
128 tab(); |
128 tab(); |
129 println("// " + stringValue(info)); |
129 println("// " + stringValue(info)); |
130 return 1; |
130 return 1; |
131 } |
131 } |
132 |
132 |
324 } |
324 } |
325 } |
325 } |
326 |
326 |
327 public String visitMethodHandle(CONSTANT_MethodHandle_info info, Void p) { |
327 public String visitMethodHandle(CONSTANT_MethodHandle_info info, Void p) { |
328 try { |
328 try { |
329 return info.reference_kind.name + " " + stringValue(info.getCPRefInfo()); |
329 return info.reference_kind + " " + stringValue(info.getCPRefInfo()); |
330 } catch (ConstantPoolException e) { |
330 } catch (ConstantPoolException e) { |
331 return report(e); |
331 return report(e); |
332 } |
332 } |
333 } |
333 } |
334 |
334 |