List of usage examples for java.lang NoSuchMethodError NoSuchMethodError
public NoSuchMethodError(String s)
NoSuchMethodError
with the specified detail message. From source file:com.ideabase.repository.core.service.HashMapStateManagerImpl.java
public int getHits(final String pKey) { throw new NoSuchMethodError("this method is not yet implemented"); }
From source file:com.ideabase.repository.core.dao.impl.ItemDAOJdbcImpl.java
public Item findItem(final int pItemId) { throw new NoSuchMethodError("this method is not yet implemented"); }
From source file:com.ideabase.repository.core.service.HashMapStateManagerImpl.java
public int getMisses(final String pKey) { throw new NoSuchMethodError("this method is not yet implemented"); }
From source file:com.ideabase.repository.core.dao.impl.ItemDAOJdbcImpl.java
public int countItems(final Item pItem) { throw new NoSuchMethodError("this method is not yet implemented"); }
From source file:org.pentaho.test.platform.engine.core.MicroPlatform.java
public MicroPlatform defineInstance(String key, Object instance) { if (getFactory() instanceof IPentahoDefinableObjectFactory) { IPentahoDefinableObjectFactory definableFactory = (IPentahoDefinableObjectFactory) getFactory(); definableFactory.defineInstance(key, instance); } else {//from ww w .j a va 2 s . c o m throw new NoSuchMethodError("define is only supported by IPentahoDefinableObjectFactory"); } return this; }
From source file:com.ideabase.repository.core.dao.impl.ItemDAOJdbcImpl.java
public void commitTransaction() { throw new NoSuchMethodError("this method is not yet implemented"); }
From source file:it.unibo.alchemist.language.protelis.util.ReflectionUtils.java
/** * @param clazz// w w w .j a va 2s.c o m * the class where to search for suitable methods * @param methodName * the method to be invoked * @param args * the arguments for the method * @return the result of the invocation, or an {@link IllegalStateException} * if something goes wrong. */ public static Method searchBestMethod(final Class<?> clazz, final String methodName, final List<Object> args) { final List<Class<?>> argClass = new ArrayList<>(); for (Object i : args) { argClass.add(i.getClass()); } try { return METHOD_CACHE.get((Triple) new ImmutableTriple<>(clazz, methodName, argClass)); } catch (ExecutionException e) { throw new NoSuchMethodError(methodName + "/" + args.size() + argClass + " does not exist in " + clazz + ". You tried to invoke it with arguments " + args); } }
From source file:Main.java
public static Constructor<?> findConstructorExact(Class<?> clazz, Class<?>... parameterTypes) { StringBuilder sb = new StringBuilder(clazz.getName()); sb.append(getParametersString(parameterTypes)); sb.append("#exact"); String fullConstructorName = sb.toString(); if (constructorCache.containsKey(fullConstructorName)) { Constructor<?> constructor = constructorCache.get(fullConstructorName); if (constructor == null) throw new NoSuchMethodError(fullConstructorName); return constructor; }// ww w. j a va 2 s . c o m try { Constructor<?> constructor = clazz.getDeclaredConstructor(parameterTypes); constructor.setAccessible(true); constructorCache.put(fullConstructorName, constructor); return constructor; } catch (NoSuchMethodException e) { constructorCache.put(fullConstructorName, null); throw new NoSuchMethodError(fullConstructorName); } }
From source file:com.ideabase.repository.core.dao.impl.ItemDAOImpl.java
public void startTransaction() { throw new NoSuchMethodError("this method is not yet implemented"); }
From source file:com.ideabase.repository.core.dao.impl.ItemDAOImpl.java
public void endTransaction() { throw new NoSuchMethodError("this method is not yet implemented"); }