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

Error in FFM tests due to primitive type conversion and boxing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25
    • core-libs

      In `TestMemoryAlignment::testUnalignedAccess`, there is an `assertNotEquals(align, 8)` that causes boxing and as the
      parameter types are `long` and `int`, they get wrapped into `Long`
      and `Integer`, and those instances never equal, so the assert
      vacuously passes, regardless of the numeric values.

      Other issues exist in `TestByteBuffer` L362 and L327, where an exception is caught, sometimes a SkipException is thrown, otherwise the exception is ignored.

            pminborg Per-Ake Minborg
            pminborg Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: