Skip to content

Instantly share code, notes, and snippets.

@gissuebot
gissuebot / ProvidedBy.java
Created July 7, 2014 19:15
Migrated attachment for Guice issue 808, comment 0
View ProvidedBy.java
/**
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@gissuebot
gissuebot / fix_issue_807.patch
Created July 7, 2014 19:15
Migrated attachment for Guice issue 807, comment 5
View fix_issue_807.patch
From 6b7a884bb097aa3d70e71fbc5e5c6143d8d5be43 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Thu, 12 Jun 2014 11:26:46 -0400
Subject: [PATCH] Properly construct a wrapped servlet request before calling
Filter.doFilter()
---
.../inject/servlet/FilterChainInvocation.java | 8 ++-
.../google/inject/servlet/FilterDefinition.java | 79 ++++++++++++++++++++++
.../com/google/inject/servlet/ServletTest.java | 3 +-
@gissuebot
gissuebot / 0001-Guice-Servlet-Fix-request-propagation-problem.patch
Created July 7, 2014 19:14
Migrated attachment for Guice issue 806, comment 0
View 0001-Guice-Servlet-Fix-request-propagation-problem.patch
From 428a6a2d12fdfa544b249777437e5700dc79f258 Mon Sep 17 00:00:00 2001
From: David Ostrovsky <david@ostrovsky.org>
Date: Tue, 20 May 2014 00:53:05 +0200
Subject: [PATCH] Guice-Servlet: Fix request propagation problem
Change-Id: I18beb63514b01c34dcb0e24c4b5f4a9939e34882
---
...HttpServletRequest-Make-cookies-immutable.patch | 52 ++++++++++++++++++++++
1 file changed, 52 insertions(+)
create mode 100644 contrib/0001-ContinuingHttpServletRequest-Make-cookies-immutable.patch
@gissuebot
gissuebot / RobotLegs.java
Created July 7, 2014 19:14
Migrated attachment for Guice issue 805, comment 1
View RobotLegs.java
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Key;
import com.google.inject.PrivateModule;
import javax.inject.Inject;
import java.lang.annotation.Annotation;
import static com.google.inject.name.Names.named;
import static java.lang.String.format;
@gissuebot
gissuebot / InjectorListenerWithSingletons.java
Created July 7, 2014 19:14
Migrated attachment for Guice issue 802, comment 0
View InjectorListenerWithSingletons.java
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import com.google.inject.AbstractModule;
import com.google.inject.BindingAnnotation;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Key;
import com.google.inject.Provider;
import com.google.inject.Singleton;
@gissuebot
gissuebot / GuiceTest.java
Created July 7, 2014 19:14
Migrated attachment for Guice issue 791, comment 0
View GuiceTest.java
import static org.junit.Assert.assertTrue;
import java.util.Set;
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Key;
import com.google.inject.Singleton;
import com.google.inject.TypeLiteral;
@gissuebot
gissuebot / guice_785.txt
Created July 7, 2014 19:14
Migrated attachment for Guice issue 785, comment 18
View guice_785.txt
com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: Recursive load of: com.getperka.flatpack.ext.TypeContext.<init>()
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827)
at com.google.inject.internal.FailableCache.get(FailableCache.java:48)
at com.google.inject.internal.ConstructorInjectorStore.get(ConstructorInjectorStore.java:5
@gissuebot
gissuebot / jstack_dump.log
Created July 7, 2014 19:14
Migrated attachment for Guice issue 785, comment 10
View jstack_dump.log
2014-01-08 16:50:05
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.7-b01 mixed mode):
"Attach Listener" daemon prio=10 tid=0x00007f6250003000 nid=0x751b waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Low Priority Thread #2CC" daemon prio=10 tid=0x00007f623422a800 nid=0x750f waiting on condition [0x00007f6223c56000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000e18bd4f8> (a java.util.concurrent.SynchronousQueue$TransferStack)
@gissuebot
gissuebot / 0001-Pass-the-current-Stage-into-the-overridden-and-overr.patch
Created July 7, 2014 19:14
Migrated attachment for Guice issue 784, comment 0
View 0001-Pass-the-current-Stage-into-the-overridden-and-overr.patch
From 97f9b99dd6a76bc4691b9f4fcc71a828005969c8 Mon Sep 17 00:00:00 2001
From: Tavian Barnes <tavianator@tavianator.com>
Date: Thu, 28 Nov 2013 20:00:36 -0500
Subject: [PATCH] Pass the current Stage into the overridden and overriding
modules in Modules.override().
---
core/src/com/google/inject/util/Modules.java | 4 ++--
.../com/google/inject/util/OverrideModuleTest.java | 22 +++++++++++++++++++++-
2 files changed, 23 insertions(+), 3 deletions(-)
@gissuebot
gissuebot / 0001-De-duplicate-ProvisionListeners.patch
Created July 7, 2014 19:14
Migrated attachment for Guice issue 779, comment 0
View 0001-De-duplicate-ProvisionListeners.patch
From 04039d5d84d4cf162c2657564caec161a6ae0c9c Mon Sep 17 00:00:00 2001
From: Tavian Barnes <tavianator@tavianator.com>
Date: Wed, 6 Nov 2013 13:44:13 -0500
Subject: [PATCH 1/3] De-duplicate ProvisionListeners.
If a binding has two equivalent ProvisionListeners, only fire one of them.
---
.../inject/internal/ProvisionListenerStackCallback.java | 9 ++++++---
core/test/com/google/inject/ProvisionListenerTest.java | 13 +++++++++++++
2 files changed, 19 insertions(+), 3 deletions(-)