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

java/awt/datatransfer/BestFormatForFlavorTest/BestFormatForFlavorTest.html faile

XMLWordPrintable

    • mantis
    • x86
    • windows_98
    • Verified



      Name: asR10013 Date: 09/04/2002


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.1-b21
      TestBase : RegTest-test
      Platform[s] : Windows 98
      Falling test[s]:
              java/awt/datatransfer/BestFormatForFlavorTest/BestFormatForFlavorTest.html


      The test java/awt/datatransfer/BestFormatForFlavorTest/BestFormatForFlavorTest.html failed on windows 98.
      The cause of the failure is that the GetClipboardData win32 function in Windows 98 may return a handle
      of a larger size than was transferred into the clipboard. Actually it returns a handle to a block of 32 bytes
      for this test. As a consequence, the InputStream object returned by getTransferData allows to read 32 bytes,
      but only 9 of them are the data transferred and others are just garbage. The situation is different on
      Windows NT-based platforms, where GetClipboardData returns handles to blocks of the same size.

      It should be taken into consideration that the GlobalAlloc function in Windows 98 sometimes returns more
      data than requested. The Microsoft specification describes this fact.

      There seem to be another hidden bug in the test. The call to GlobalAlloc does not reserve any space for the null terminator
      character which is copied by strcpy.

      jtr file location:
      ==================
      /net/jtgb4u4c.eng/export/sail15/results/hopper/b21/regtest/win32/win98_client_linux-17/workDir/test/java/awt/datatransfer/BestFormatForFlavorTest/BestFormatForFlavorTest.jtr

      How to reproduce:
      =================

      Run the test in JT3.1 harness or using jtreg script.


      ======================================================================

            agerasimsunw Alexander Gerasimov (Inactive)
            alssunw Als Als (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: