Bug 452235
Summary: | java.util.Scanner.nextFloat() not working | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Andrea Santilli <sacntct> | ||||||
Component: | java-1.6.0-openjdk | Assignee: | Thomas Fitzsimmons <fitzsim> | ||||||
Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 9 | CC: | langel, lkundrak, mjw | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2008-06-20 16:07:38 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Andrea Santilli
2008-06-20 13:40:31 UTC
Created attachment 309918 [details]
the test program sources
Created attachment 309919 [details]
text file i used to test the method
java-1.6.0-openjdk-1.6.0.0-0.15.b09.fc9.i386 $ java Test test.txt 0.123 $ /opt/jdk1.6.0_03/bin/java Test testtt 0.123 $ java -version java version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK Server VM (build 1.6.0-b09, mixed mode) testtt and test.txt are identical to the text file you attached Lillian: I am wondering whether you tried this on PowerPC? gbenson once pointed me to an issue very similar to this, that was an explanation for a problem I had on ppc. It was occuring with an early version of GNU Classpath IIRC. I tried to reinstall all the packages but sorry, it still doesnt work for me. this is the output i get by running the test program: $ java Test test.txt java.util.InputMismatchException at java.util.Scanner.throwFor(Scanner.java:857) at java.util.Scanner.next(Scanner.java:1478) at java.util.Scanner.nextFloat(Scanner.java:2336) at Test.main(Test.java:28) Scanner.nextFloat() is screwed... let's try something else. 0.123 That's really weird because it looks like nextFloat() calls next() anyway. Oh anyway I'm not on a PowerPC, just an Aspire 5630 I tested this on an i386, I will test it on x86_64 as well. works on x86_64 $ java Test attachment.cgi 0.123 $ java -version java version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode) |