This is the mail archive of the java-prs@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcj/80: Source Parser: failure to compile method invocation on static field in package-name-qualified class



>Number:         80
>Category:       gcj
>Synopsis:       Source Parser: failure to compile method invocation on static field in package-name-qualified class
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 01 17:15:59 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Fredrik Warg <warg@ce.chalmers.se>
>Release:        gcc 19991021
>Organization:
>Environment:
any
>Description:
The following code:

public class QualifiedStaticField
{
  public static void main(String args[])
    {
      java.lang.System.out.println("test");
    }
}

Produces the following error message:

[bryce@reason tests]$ gcj Parse2.java 
Parse2.java: In class `Parse2':
Parse2.java: In method `main(java.lang.String[])':
Parse2.java:5: Can't find method `println(Ljava/lang/String;)' in class `java.lang.System'.
      java.lang.System.out.println("test");
      ^
1 error


Also, refer to Fredrik's original message here:
http://sourceware.cygnus.com/ml/java-discuss/1999-q4/msg00195.html
>How-To-Repeat:
Compile the test code above
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]