Codota Logo
BootstrapMethodError.<init>
Code IndexAdd Codota to your IDE (free)

How to use
java.lang.BootstrapMethodError
constructor

Best Java code snippets using java.lang.BootstrapMethodError.<init> (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.codelibs.elasticsearch.module/lang-painless

    throw new BootstrapMethodError("Invalid number of parameters for method call");
    throw new BootstrapMethodError("Illegal parameter for method call: " + args[0]);
    throw new BootstrapMethodError("Illegal recipe for method call: too many bits");
    throw new BootstrapMethodError("Illegal number of parameters: expected " + numLambdas + " references");
case INDEX_NORMALIZE:
  if (args.length > 0) {
    throw new BootstrapMethodError("Illegal static bootstrap parameters for flavor: " + flavor);
    throw new BootstrapMethodError("Invalid number of parameters for reference call");
    throw new BootstrapMethodError("Illegal parameter for reference call: " + args[0]);
case BINARY_OPERATOR:
  if (args.length != 1) {
    throw new BootstrapMethodError("Invalid number of parameters for operator call");
    throw new BootstrapMethodError("Illegal parameter for reference call: " + args[0]);
    throw new BootstrapMethodError("This parameter is only supported for BINARY_OPERATORs");
    throw new BootstrapMethodError("This parameter is only supported for BINARY/SHIFT_OPERATORs");
  throw new BootstrapMethodError("Illegal static bootstrap parameter for flavor: " + flavor);
origin: szegedi/dynalink

@Override
SingleDynamicMethod getMethodForExactParamTypes(final String paramTypes) {
  final LinkedList<SingleDynamicMethod> matchingMethods = new LinkedList<>();
  for(final SingleDynamicMethod method: methods) {
    final SingleDynamicMethod matchingMethod = method.getMethodForExactParamTypes(paramTypes);
    if(matchingMethod != null) {
      matchingMethods.add(matchingMethod);
    }
  }
  switch(matchingMethods.size()) {
    case 0: {
      return null;
    }
    case 1: {
      return matchingMethods.getFirst();
    }
    default: {
      throw new BootstrapMethodError("Can't choose among " + matchingMethods + " for argument types "
          + paramTypes + " for method " + getName());
    }
  }
}
origin: org.dynalang/dynalink

@Override
SingleDynamicMethod getMethodForExactParamTypes(String paramTypes) {
  final LinkedList<SingleDynamicMethod> matchingMethods = new LinkedList<>();
  for(SingleDynamicMethod method: methods) {
    final SingleDynamicMethod matchingMethod = method.getMethodForExactParamTypes(paramTypes);
    if(matchingMethod != null) {
      matchingMethods.add(matchingMethod);
    }
  }
  switch(matchingMethods.size()) {
    case 0: {
      return null;
    }
    case 1: {
      return matchingMethods.getFirst();
    }
    default: {
      throw new BootstrapMethodError("Can't choose among " + matchingMethods + " for argument types "
          + paramTypes + " for method " + getName());
    }
  }
}
origin: szegedi/dynalink

private static void assertParameterCount(final CallSiteDescriptor descriptor, final int paramCount) {
  if(descriptor.getMethodType().parameterCount() != paramCount) {
    throw new BootstrapMethodError(descriptor.getName() + " must have exactly " + paramCount + " parameters.");
  }
}
origin: org.dynalang/dynalink

private static void assertParameterCount(CallSiteDescriptor descriptor, int paramCount) {
  if(descriptor.getMethodType().parameterCount() != paramCount) {
    throw new BootstrapMethodError(descriptor.getName() + " must have exactly " + paramCount + " parameters.");
  }
}
origin: szegedi/dynalink

  private static void assertParameterCount(final CallSiteDescriptor descriptor, final int paramCount) {
    if(descriptor.getMethodType().parameterCount() != paramCount) {
      throw new BootstrapMethodError(descriptor.getName() + " must have exactly " + paramCount + " parameters.");
    }
  }
}
origin: org.dynalang/dynalink

  private static void assertParameterCount(CallSiteDescriptor descriptor, int paramCount) {
    if(descriptor.getMethodType().parameterCount() != paramCount) {
      throw new BootstrapMethodError(descriptor.getName() + " must have exactly " + paramCount + " parameters.");
    }
  }
}
origin: stackoverflow.com

 public static void main(String... arg) {
  Consumer<String> consumer=getConsumer();
  consumer.accept("hello world");
}

static Consumer<String> getConsumer() {
  try {
    MethodHandles.Lookup lookup=MethodHandles.lookup();
    MethodType consumeString = MethodType.methodType(void.class, String.class);
    return (Consumer<String>)LambdaMetafactory.metafactory(lookup, "accept",
      MethodType.methodType(Consumer.class, PrintStream.class),
      consumeString.changeParameterType(0, Object.class),
      lookup.findVirtual(PrintStream.class, "println", consumeString), consumeString)
    .getTarget().invokeExact(System.out);
  }
  catch(RuntimeException | Error e) { throw e; }
  catch(Throwable t) { throw new BootstrapMethodError(t); }
}
origin: szegedi/dynalink

throw new BootstrapMethodError("Can't choose among " + maximallySpecifics + " for argument types "
    + callSiteType);
origin: org.dynalang/dynalink

throw new BootstrapMethodError("Can't choose among " + maximallySpecifics + " for argument types "
    + callSiteType);
origin: org.codelibs.elasticsearch.module/lang-painless

PIC(PainlessLookup painlessLookup, Map<String, LocalMethod> localMethods,
    MethodHandles.Lookup methodHandlesLookup, String name, MethodType type, int initialDepth, int flavor, Object[] args) {
  super(type);
  if (type.parameterType(0) != Object.class) {
    throw new BootstrapMethodError("The receiver type (1st arg) of invokedynamic descriptor must be Object.");
  }
  this.painlessLookup = painlessLookup;
  this.localMethods = localMethods;
  this.methodHandlesLookup = methodHandlesLookup;
  this.name = name;
  this.flavor = flavor;
  this.args = args;
  this.depth = initialDepth;
  MethodHandle fallback = FALLBACK.bindTo(this)
   .asCollector(Object[].class, type.parameterCount())
   .asType(type);
  setTarget(fallback);
}
java.langBootstrapMethodError<init>

Popular methods of BootstrapMethodError

  • getCause

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Socket (java.net)
    Provides a client-side TCP socket.
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • JOptionPane (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now