RFR: 8303930: Fix ConstantUtils.skipOverFieldSignature void case return value [v2]

liach duke at openjdk.org
Fri Mar 10 02:50:45 UTC 2023


> This typo doesn't allow creation of malformed ClassDesc or MethodTypeDesc, but it produces an erroneous exception on certain inputs. Running `java.lang.constant.MethodTypeDesc.ofDescriptor("(IIIII[[[V)I")` in Jshell 19.0.2 throws StringIndexOutOfBoundsException, and throws IllegalArgumentException in the Jshell for this patch.

liach has updated the pull request incrementally with one additional commit since the last revision:

  Copyright year

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/12964/files
  - new: https://git.openjdk.org/jdk/pull/12964/files/075c6050..d7b38bcf

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=12964&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=12964&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/12964.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12964/head:pull/12964

PR: https://git.openjdk.org/jdk/pull/12964


More information about the core-libs-dev mailing list