gcj/209: Type botch with static final ints.

green@cygnus.com green@cygnus.com
Sun Apr 16 23:40:00 GMT 2000


>Number:         209
>Category:       gcj
>Synopsis:       Type botch with static final ints.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 16 23:40:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     green@cygnus.com
>Release:        current cvs
>Organization:
>Environment:
x86 Linux
>Description:
gcj produces the following error when compiling code below...

[green@tecra libjava.compile]$ gcj -c PR209.java
PR209.java: In class `PR209':
PR209.java: In method `$finit$()':
PR209.java:3: Incompatible type for declaration. Can't convert `java.sql.Types' to `int'.
  public int i = java.sql.Types.TINYINT;
             ^
1 error

java.sql.Type.TINYINT is a public static final int.


public class PR209
{
  public int i = java.sql.Types.TINYINT;
}

>How-To-Repeat:
gcj -c PE209.java
>Fix:

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


More information about the Java-prs mailing list