This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS info.picocli:picocli:4.5.0 | |
//DEPS io.smallrye.reactive:smallrye-mutiny-vertx-web-client:1.2.1 | |
//DEPS io.quarkus.qute:qute-core:1.8.2.Final | |
package com.gihub.mkouba; | |
import picocli.CommandLine; | |
import picocli.CommandLine.Command; | |
import picocli.CommandLine.Parameters; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javax.management.InstanceNotFoundException: jboss.arquillian:service=jmx-test-runner | |
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095) | |
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(DefaultMBeanServerInterceptor.java:1444) | |
at com.sun.jmx.mbeanserver.JmxMBeanServer.getClassLoaderFor(JmxMBeanServer.java:1324) | |
at javax.management.remote.rmi.RMIConnectionImpl$5.run(RMIConnectionImpl.java:1363) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at javax.management.remote.rmi.RMIConnectionImpl.getClassLoaderFor(RMIConnectionImpl.java:1360) | |
at javax.management.remote.rmi.RMIConnectionImpl.addNotificationListeners(RMIConnectionImpl.java:985) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd"> | |
<Configure class="org.eclipse.jetty.webapp.WebAppContext"> | |
<Set name="contextPath">/weld-numberguess</Set> | |
<Set name="war"><Property name="jetty.webapps" default="."/>/weld-numberguess.war</Set> | |
<Call name="prependServerClass"> | |
<Arg>-org.eclipse.jetty.servlet.,-org.eclipse.jetty.server.</Arg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WarpTest | |
@Category(Integration.class) | |
@RunWith(Arquillian.class) | |
public class Weld1247Test { | |
@Deployment | |
public static WebArchive deployment() { | |
return ShrinkWrap.create(WebArchive.class, "test.war") | |
.addClass(Bean.class) | |
.addAsWebResource(Weld1247Test.class.getPackage(), "index.xhtml", "index.xhtml") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Foo<T> { | |
private Object value; | |
public Foo(Object value) { | |
this.value = value; | |
} | |
@SuppressWarnings("unchecked") | |
public T ping() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Account { | |
public void withdraw(int amount); | |
public void deposit(int amount); | |
public int getBalance(); | |
} | |
public class BankAccount implements Account { |