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

LoopOverOfAddress.java benchmark fails to compile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      LoopOverOfAddress.java benchmark fails to compile

      warning: [lossy-conversions] implicit cast from long to int in compound assignment is possibly lossy
            res += MemorySegment.ofAddress(i % 100).address();

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: