ClassLoader.defineClass(String, ByteBuffer, ProtectionDomain) does not advance buffer position

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 5.0, 25
    • Component/s: core-libs

      defineClass specifies that "An invocation of this method .. yields exactly the same result as the statements". This isn't quite right. The equivalent advances the buffer position to its limit, the defineClass(String, ByteBuffer, ProtectionDomain) method not advance the position. The only case where the buffer position is advanced is when the buffer is a read-only heap buffer.

            Assignee:
            Brent Christian
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: