Skip to content

Instantly share code, notes, and snippets.

View rmannibucau's full-sized avatar

Romain Manni-Bucau rmannibucau

View GitHub Profile
Index: webbeans-impl/src/main/java/org/apache/webbeans/container/BeanCacheKey.java
===================================================================
--- webbeans-impl/src/main/java/org/apache/webbeans/container/BeanCacheKey.java (revision 1436220)
+++ webbeans-impl/src/main/java/org/apache/webbeans/container/BeanCacheKey.java (working copy)
@@ -161,9 +161,8 @@
}
if (qualifiers != null)
{
- for (int i = 0; i < qualifiers.length; i++)
- {
Index: webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
===================================================================
--- webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java (revision 1436220)
+++ webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java (working copy)
@@ -91,6 +91,8 @@
import org.apache.webbeans.util.WebBeansUtil;
import org.apache.webbeans.xml.WebBeansXMLConfigurator;
+import static org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionException;
+
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.test</groupId>
<artifactId>core</artifactId>
<version>0.6.0</version>
<packaging>ejb</packaging>
package org.pokernuvola.core.web.bean;
import java.util.List;
import javax.ejb.EJB;
import javax.naming.NamingException;
import junit.framework.Assert;
import org.jboss.arquillian.junit.Arquillian;
import org.jruby.Ruby;
import org.jruby.RubyInstanceConfig;
import org.jruby.RubyString;
import org.jruby.anno.JRubyMethod;
import org.jruby.ast.executable.AbstractScript;
import org.jruby.ast.executable.RuntimeCache;
import org.jruby.javasupport.util.RuntimeHelpers;
import org.jruby.runtime.Block;
import org.jruby.runtime.CallSite;
import org.jruby.runtime.DynamicScope;
@ApplicationPath("/rest")
public class AnnotatedApplication extends Application {
public Set<Class<?>> getClasses() {
return new HashSet<Class<?>>(Arrays.asList(Echo.class));
}
}
@Path("echo")
public class Echo {
all: my-slides.pdf
%.pdf: %.md
@echo "Building $@..."
@mkdir -p output
@pandoc --listings --highlight-style pygments -V theme:Custom -t beamer $^ -o output/$@
@echo "Built $@."
clean:
rm output/*.pdf
#! /bin/bash
while true; do
inotifywait -e modify *.md
make
done
@rmannibucau
rmannibucau / gist:5384221
Last active December 16, 2015 05:28
# TomEE 1.6.0 (snapshot) + OWB 1.2.0 (snapshot) ## TomEE rev: URL: https://svn.apache.org/repos/asf/tomee/tomee/trunk Repository Root: https://svn.apache.org/repos/asf Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68 Revision: 1467818 Node Kind: directory Schedule: normal Last Changed Author: tveronezi Last Changed Rev: 1467672 Last Changed…
Index: tomee/tomee-myfaces/src/main/java/org/apache/tomee/myfaces/TomEEMyFacesContainerInitializer.java
===================================================================
--- tomee/tomee-myfaces/src/main/java/org/apache/tomee/myfaces/TomEEMyFacesContainerInitializer.java (revision 1467856)
+++ tomee/tomee-myfaces/src/main/java/org/apache/tomee/myfaces/TomEEMyFacesContainerInitializer.java (working copy)
@@ -163,7 +163,8 @@
// remove our internal faces-config.xml
final Iterator<URL> it = metaInfFacesConfigUrls.iterator();
while (it.hasNext()) {
- if (it.next().toExternalForm().replace(File.separator, "/").contains("/openwebbeans-jsf-")) {
+ final String next = it.next().toExternalForm().replace(File.separator, "/");
@rmannibucau
rmannibucau / gist:5396530
Last active December 16, 2015 07:08
tomee 1.6.0-SNAPSHOT patch 4 OWB 1.2.0-SNAPSHOT
Index: pom.xml
===================================================================
--- pom.xml (revision 1468752)
+++ pom.xml (working copy)
@@ -143,7 +143,7 @@
<junit.version>4.11</junit.version>
<org.apache.axis2.version>1.4.1</org.apache.axis2.version>
<scannotation.version>1.0.2</scannotation.version>
- <org.apache.openwebbeans.version>1.1.8</org.apache.openwebbeans.version>
+ <org.apache.openwebbeans.version>1.2.0-SNAPSHOT</org.apache.openwebbeans.version>