Status: New
Owner: ----

New issue 293 by phopkins: MoreTypes#toString(Type) double-qualifies  
parameterized inner classes
http://code.google.com/p/google-guice/issues/detail?id=293

Repro:

package com.google.inject;

class Foobar {
   public static class Foo {}
   public static class Bar<String> {}

   TypeLiteral<?> fooType = new TypeLiteral<Foo>() {}
   TypeLiteral<?> barType = new TypeLiteral<Bar<String>>() {}
}

The #toString() for fooType will be:

com.google.inject.Foobar$Foo (which is right)

The #toString() for barType will be:

com.google.inject.Foobar.com.google.inject.Foobar$Bar<String>

It should be:

com.google.inject.Foobar$Bar<String>


Attached patch for the fix.



Attachments:
        tostring.patch  2.6 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to