Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8273119

std::stringstream's operator<< with integer doesn't work after using Jpackage

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Ubuntu 20.04.2 LTS, Java 16.0.2

      A DESCRIPTION OF THE PROBLEM :
      When I run native code from java and use Jpackage's binary to run the application I don't receive the output I expected.
      stringstream operator<< doesn't work when integer is sent.
      When I run the same application with the jar instead of the jpakcage's binary I get the expected output.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      https://github.com/itaybn1994/oracle-jdk16-bug-reproduce

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The string with the number at the end, for example: result= abcd5
      ACTUAL -
      The string without the number result= abcd

      ---------- BEGIN SOURCE ----------
      https://github.com/itaybn1994/oracle-jdk16-bug-reproduce
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            adev ANUPAM DEV
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: