Can't access public member of public static class inside public class (all in a separate jar)
<p>Well, that's a mouthful of a title. It gets my point across, though. Here's the gist of my code, inside the jar:</p>

<pre><code>public class NetworkShared {
    public static class LoginRequest {
        public String Username;
        //...
</code></pre>

<p>Then, to access it, I'm doing something like this:</p>

<pre><code>NetworkShared.LoginRequest request = new NetworkShared.LoginRequest();
request.Username = "example"; //this is the problem line
</code></pre>

<p>It's when I try to access request.Username that I have a problem. Eclipse says the field NetworkShared.LoginRequest.Username is not visible. I'm puzzled because it's public all the way down. Java's not my main language, so I might be missing something. Does anyone know?</p>

<p>EDIT: I might add that this on Android. NetworkShared is in its own JAR and I've added it to the build path. Nothing else is wrong except for accessing request.Username.</p>
