java/6026: float literals in expressions are not properly reckognized

"Roland Hautz"@sources.redhat.com "Roland Hautz"@sources.redhat.com
Thu Mar 21 16:26:00 GMT 2002


>Number:         6026
>Category:       java
>Synopsis:       float literals in expressions are not properly reckognized
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 21 16:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.2 20020319 (experimental)
>Organization:
>Environment:
System: Linux isabella 2.4.10-4GB #1 Tue Sep 25 12:33:54 GMT 2001 i586 unknown
Architecture: i586

	
host: i586-pc-linux-gnu
build: i586-pc-linux-gnu
target: i586-pc-linux-gnu
configured with: /home/roland/gcc/configure  : (reconfigured) /home/roland/gcc/configure --enable-threads=posix --enable-shared --enable-languages=c++,java : (reconfigured) /home/roland/gcc/configure  : (reconfigured) /home/roland/gcc/configure --disable-libf2c : (reconfigured) /home/roland/gcc/configure --enable-threads=posix --enable-languages=c,c++,java : (reconfigured)  : (reconfigured)  : (reconfigured) /home/roland/gcc/configure --enable-threads=posix --enable-languages=c,c++,java --enable-interpreter : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured) /home/roland/gcc/configure --enable-threads=posix --enable-languages=c,c++,java : (reconfigured) /home/roland/gcc/configure --enable-threads=posix --enable-languages=c,c++,java : (reconfigured)  : (reconfigured) /home/roland/gcc/configure --enable-threads=posix --enable-language!
 s=c,c++,java : (reconfigured)  : (reconfigured)  : (reconfigured) /home/roland/gcc/configure --enable-threads=posix --enable-languages=c,c++,java
>Description:
        double a; // or float
        a = 0.4e1 +0.8; // ok
        a = 0.4e1+0.8;  // can't parse

gives this error:

HelloWorld.java:5: Invalid character in FP literal.
        a = 0.4e1+0.8;  // can't parse
                      ^

>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Java-prs mailing list