commit | f29b5a8d3f444403c516a8e60a3e0119770bccb4 | [log] [tgz] |
---|---|---|
author | sberlin <sberlin@d779f126-a31b-0410-b53b-1d3aecad763e> | Sat Jul 03 15:46:20 2010 +0000 |
committer | sberlin <sberlin@d779f126-a31b-0410-b53b-1d3aecad763e> | Sat Jul 03 15:46:20 2010 +0000 |
tree | 96680c500af1e221a46a3ea6af9bca524e40f388 | |
parent | e1290f339c0b293d852a4b946567843b589ab291 [diff] |
fixes issue 493, patch provided by Stuart -- don't try to bridge types that begin with java.* git-svn-id: https://google-guice.googlecode.com/svn/trunk@1184 d779f126-a31b-0410-b53b-1d3aecad763e
diff --git a/src/com/google/inject/internal/BytecodeGen.java b/src/com/google/inject/internal/BytecodeGen.java index 2ec2769..7f961d8 100644 --- a/src/com/google/inject/internal/BytecodeGen.java +++ b/src/com/google/inject/internal/BytecodeGen.java
@@ -134,6 +134,11 @@ if (!CUSTOM_LOADER_ENABLED) { return delegate; } + + // java.* types can be seen everywhere + if (type.getName().startsWith("java.")) { + return GUICE_CLASS_LOADER; + } delegate = canonicalize(delegate);