[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#561685: marked as done (gcj-jdk: class PrintStream method printf doesn't print floats)



Your message dated Mon, 3 May 2021 11:51:24 +0200
with message-id <[🔎] cbbd47eb-c10f-13fe-72f3-6dcc0dd26e05@debian.org>
and subject line closing, gcj removed
has caused the Debian Bug report #561685,
regarding gcj-jdk: class PrintStream method printf doesn't print floats
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
561685: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561685
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gcj-jdk
Version: 4:4.4.2-2
Severity: normal


This test program

class Test {

   public static void main(String argv[]) {

       Object args[] = {
           new Float(0.0001),
       };
       System.err.printf("%f\n", args);
   }
}

produces no output when compiled with gcj (gcj Test.java --main=Test
-o Test) and run (./Test).

The correct output is produced when the bytecode is produced by javac
and run with the java virtual machine:

  % javac Test.java 
  % java Test
  0.000100

printf is generally messed up anyway. The %x format insists on
printing 64 bit numbers even when given 32 bit integers as feed, and
it sign-extends them all, reulting in 0xffffffff80000000 output from
integer 0x8000000.

And %g doesn't print anything either.


-- System Information:
LSB Version:	core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 8.04.1
Release:	8.04
Codename:	hardyArchitecture: i386 (i686)

Kernel: Linux 2.6.31.2-SMP (SMP w/1 CPU core; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcj-jdk depends on:
ii  gcj-4.4-jdk                   4.4.2-4    gcj and classpath development tool
ii  gcj-jre                       4:4.4.2-2  Java runtime environment using GIJ
ii  libgcj-common                 1:4.4.2-2  Java runtime library (common files

gcj-jdk recommends no packages.

gcj-jdk suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
closing, gcj was removed long time ago.

--- End Message ---

Reply to: