java.lang.LinkageError.toString()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(8.3k)|赞(0)|评价(0)|浏览(112)

本文整理了Java中java.lang.LinkageError.toString()方法的一些代码示例,展示了LinkageError.toString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LinkageError.toString()方法的具体详情如下:
包路径:java.lang.LinkageError
类名称:LinkageError
方法名:toString

LinkageError.toString介绍

暂无

代码示例

代码示例来源:origin: martin-lizner/trezor-ssh-agent

private void initCoreClasses() throws Exception {
  try {
    libU = User32.INSTANCE;
    libK = Kernel32.INSTANCE;
  } catch (java.lang.UnsatisfiedLinkError | java.lang.NoClassDefFoundError ex) {
    TrayProcess.handleException(ex);
    throw new Exception(ex.toString());
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide-loaders

throw ex;
} catch (LinkageError le) {
  throw new ClassNotFoundException(le.toString(), le);

代码示例来源:origin: io.snappydata/snappydata-store-core

/**
*/
private Object newInstance(Class classObject) {
  try {
    return classObject.newInstance();
  }
  catch (InstantiationException e) {
    report(classObject.getName() + " " + e.toString());
  }
   catch (IllegalAccessException e) {
    report(classObject.getName() + " " + e.toString());
  }
  catch (LinkageError le) {
    report(classObject.getName() + " " + le.toString());
    reportException(le);
  }
  return null;
}

代码示例来源:origin: teatrove/teatrove

throw new IntrospectionException(e.toString());

代码示例来源:origin: net.java.sezpoz/sezpoz

throw (InstantiationException) new InstantiationException(x.toString()).initCause(x);
} catch (LinkageError x) {
  throw (InstantiationException) new InstantiationException(x.toString()).initCause(x);

代码示例来源:origin: org.eclipse.hudson/hudson-inject

throw (InstantiationException) new InstantiationException(x.toString()).initCause(x);
} catch (LinkageError x) {
  throw (InstantiationException) new InstantiationException(x.toString()).initCause(x);

代码示例来源:origin: org.eclipse.hudson.main/hudson-inject

throw (InstantiationException) new InstantiationException(x.toString()).initCause(x);
} catch (LinkageError x) {
  throw (InstantiationException) new InstantiationException(x.toString()).initCause(x);

代码示例来源:origin: net.java.sezpoz/sezpoz

/**
 * Get the live annotated element.
 * @return a {@link Class}, {@link Method}, or {@link Field}
 * @throws InstantiationException if the class cannot be loaded or there is some other reflective problem
 */
public AnnotatedElement element() throws InstantiationException {
  if (element == null) {
    try {
      Class<?> impl = loader.loadClass(className());
      if (structure.isMethod) {
        element = impl.getMethod(structure.memberName);
      } else if (structure.memberName != null) {
        element = impl.getField(structure.memberName);
      } else {
        element = impl;
      }
      LOGGER.log(Level.FINER, "Loaded annotated element: {0}", element);
    } catch (Exception x) {
      throw (InstantiationException) new InstantiationException(labelFor(resource) + " might need to be rebuilt: " + x).initCause(x);
    } catch (LinkageError x) {
      throw (InstantiationException) new InstantiationException(x.toString()).initCause(x);
    }
  }
  return element;
}

代码示例来源:origin: io.snappydata/gemfirexd-core

/**
*/
private Object newInstance(Class classObject) {
  try {
    return classObject.newInstance();
  }
  catch (InstantiationException e) {
    report(classObject.getName() + " " + e.toString());
  }
   catch (IllegalAccessException e) {
    report(classObject.getName() + " " + e.toString());
  }
  catch (LinkageError le) {
    report(classObject.getName() + " " + le.toString());
    reportException(le);
  }
  return null;
}

代码示例来源:origin: io.snappydata/gemfirexd

/**
*/
private Object newInstance(Class classObject) {
  try {
    return classObject.newInstance();
  }
  catch (InstantiationException e) {
    report(classObject.getName() + " " + e.toString());
  }
   catch (IllegalAccessException e) {
    report(classObject.getName() + " " + e.toString());
  }
  catch (LinkageError le) {
    report(classObject.getName() + " " + le.toString());
    reportException(le);
  }
  return null;
}

代码示例来源:origin: teatrove/teatrove

error(e.toString(), node);
return null;

代码示例来源:origin: org.eclipse.hudson.main/hudson-inject

/**
 * Get the live annotated element.
 * @return a {@link Class}, {@link Method}, or {@link Field}
 * @throws InstantiationException if the class cannot be loaded or there is some other reflective problem
 */
public AnnotatedElement element() throws InstantiationException {
  if (element == null) {
    try {
      Class<?> impl = space.loadClass(className());
      if (structure.isMethod) {
        element = impl.getMethod(structure.memberName);
      } else if (structure.memberName != null) {
        element = impl.getField(structure.memberName);
      } else {
        element = impl;
      }
      LOGGER.log(Level.FINER, "Loaded annotated element: {0}", element);
    } catch (Exception x) {
      throw (InstantiationException) new InstantiationException(labelFor(resource) + " might need to be rebuilt: " + x).initCause(x);
    } catch (LinkageError x) {
      throw (InstantiationException) new InstantiationException(x.toString()).initCause(x);
    }
  }
  return element;
}

代码示例来源:origin: org.eclipse.hudson/hudson-inject

/**
 * Get the live annotated element.
 * @return a {@link Class}, {@link Method}, or {@link Field}
 * @throws InstantiationException if the class cannot be loaded or there is some other reflective problem
 */
public AnnotatedElement element() throws InstantiationException {
  if (element == null) {
    try {
      Class<?> impl = space.loadClass(className());
      if (structure.isMethod) {
        element = impl.getMethod(structure.memberName);
      } else if (structure.memberName != null) {
        element = impl.getField(structure.memberName);
      } else {
        element = impl;
      }
      LOGGER.log(Level.FINER, "Loaded annotated element: {0}", element);
    } catch (Exception x) {
      throw (InstantiationException) new InstantiationException(labelFor(resource) + " might need to be rebuilt: " + x).initCause(x);
    } catch (LinkageError x) {
      throw (InstantiationException) new InstantiationException(x.toString()).initCause(x);
    }
  }
  return element;
}

代码示例来源:origin: asakusafw/asakusafw

@Override
public final void init(ProcessingEnvironment processingEnv) {
  LOG.debug("initializing operator annotation processor: {}", this); //$NON-NLS-1$
  try {
    this.environment = createCompileEnvironment(processingEnv);
  } catch (RuntimeException e) {
    processingEnv.getMessager().printMessage(
        Diagnostic.Kind.ERROR,
        MessageFormat.format(
            Messages.getString("AbstractOperatorAnnotationProcessor.errorFailInitialize"), //$NON-NLS-1$
            e.toString()));
    LOG.error(Messages.getString("AbstractOperatorAnnotationProcessor.logFailInitialize"), e); //$NON-NLS-1$
  } catch (LinkageError e) {
    processingEnv.getMessager().printMessage(
        Diagnostic.Kind.ERROR,
        MessageFormat.format(
            Messages.getString("AbstractOperatorAnnotationProcessor.errorFailLinkage"), //$NON-NLS-1$
            e.toString()));
    LOG.error(Messages.getString("AbstractOperatorAnnotationProcessor.logFailLinkage"), e); //$NON-NLS-1$
    throw e;
  }
}

代码示例来源:origin: io.snappydata/gemfirexd-core

/**
*/
private Object newInstance(String className) {
  try {
    Class factoryClass = Class.forName(className);
    return factoryClass.newInstance();
  }
  catch (ClassNotFoundException e) {
    report(className + " " + e.toString());
  }
  catch (InstantiationException e) {
    report(className + " " + e.toString());
  }
   catch (IllegalAccessException e) {
    report(className + " " + e.toString());
  }
  catch (LinkageError le) {
    report(className + " " + le.toString());
    reportException(le);
  }
  return null;
}
/**

代码示例来源:origin: io.snappydata/snappydata-store-core

/**
*/
private Object newInstance(String className) {
  try {
    Class factoryClass = Class.forName(className);
    return factoryClass.newInstance();
  }
  catch (ClassNotFoundException e) {
    report(className + " " + e.toString());
  }
  catch (InstantiationException e) {
    report(className + " " + e.toString());
  }
   catch (IllegalAccessException e) {
    report(className + " " + e.toString());
  }
  catch (LinkageError le) {
    report(className + " " + le.toString());
    reportException(le);
  }
  return null;
}
/**

代码示例来源:origin: io.snappydata/gemfirexd

/**
*/
private Object newInstance(String className) {
  try {
    Class factoryClass = Class.forName(className);
    return factoryClass.newInstance();
  }
  catch (ClassNotFoundException e) {
    report(className + " " + e.toString());
  }
  catch (InstantiationException e) {
    report(className + " " + e.toString());
  }
   catch (IllegalAccessException e) {
    report(className + " " + e.toString());
  }
  catch (LinkageError le) {
    report(className + " " + le.toString());
    reportException(le);
  }
  return null;
}
/**

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide-loaders

throw new ClassNotFoundException(e.toString() + " from " + instanceName(), e); // NOI18N

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide-loaders

throw (ClassNotFoundException) clazzException;
} catch (LinkageError le) {
  clazzException = new ClassNotFoundException("From file: " + entry.getFile() + " due to: " + le.toString());  // NOI18N
  ErrorManager.getDefault ().annotate (clazzException, le);
  throw (ClassNotFoundException) clazzException;

代码示例来源:origin: baratine/baratine

log().log(Level.FINE, e.toString(), e);
return cl;

相关文章