pombreda / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 1 forks source link

Weird issue in Guice 3.0 #732

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Cannot access classes under package com.google.inject.internal.util in Guice 
3.0. 

The code 

import com.google.inject.internal.util.ImmutableMap 

is red in my IntelliJ IDEA.

I checked the .jar of Guice 3.0 and see that the class name is $ImmutableMap, 
which does not match the code source.

Could anyone explain this?

I also noticed that there is no package-info.java in 
com.google.inject.internal.util. Does Guice use package-info to perform special 
packaging?

Original issue reported on code.google.com by hoang281...@gmail.com on 9 Oct 2012 at 5:13

GoogleCodeExporter commented 9 years ago
The jar munges some classfiles inside c.g.i.internal in order to hide it from 
IDE auto-completion.  Everything under 'internal' is, as the name implies, 
internal.. and not meant for use by anyone else.

Original comment by sberlin on 9 Oct 2012 at 1:42