< prev index next >

src/java.xml/share/classes/com/sun/org/apache/bcel/internal/generic/InstructionFactory.java

Print this page

        

*** 30,39 **** --- 30,40 ---- * {@link InstructionConst} class. * * @version $Id: InstructionFactory.java 1749603 2016-06-21 20:50:19Z ggregory $ * @see Const * @see InstructionConst + * @LastModified: Nov 2017 */ public class InstructionFactory { // N.N. These must agree with the order of Constants.T_CHAR through T_LONG private static final String[] short_names = {
*** 571,581 **** } final String name = "com.sun.org.apache.bcel.internal.generic." + short_names[src - Const.T_CHAR] + "2" + short_names[dest - Const.T_CHAR]; Instruction i = null; try { ! i = (Instruction) java.lang.Class.forName(name).newInstance(); } catch (final Exception e) { throw new RuntimeException("Could not find instruction: " + name, e); } return i; } else if ((src_type instanceof ReferenceType) && (dest_type instanceof ReferenceType)) { --- 572,582 ---- } final String name = "com.sun.org.apache.bcel.internal.generic." + short_names[src - Const.T_CHAR] + "2" + short_names[dest - Const.T_CHAR]; Instruction i = null; try { ! i = (Instruction) java.lang.Class.forName(name).getDeclaredConstructor().newInstance(); } catch (final Exception e) { throw new RuntimeException("Could not find instruction: " + name, e); } return i; } else if ((src_type instanceof ReferenceType) && (dest_type instanceof ReferenceType)) {
< prev index next >