SignatureIterator::iterate_returntype with method params containing ')'
Michael Rasmussen
michael.rasmussen at zeroturnaround.com
Wed Jun 8 08:27:28 UTC 2016
Hi
I was looking at src/share/vm/runtime/signature.cpp [1] and noticed
that SignatureIterator::iterate_returntype simply reads until the
first ')' it sees, which should be incorrect if any of the parameter
types contains ')'.
I constructed a small sample code [2], that uses ASM to generate
classes, for which I get warnings or VerifyError presumably because of
this, depending on how I name my class.
I know it's uncommon for classes to have ')' in their names, but
according to the JVMS it's legal and some libraries do generate such
classes (for instance some versions of Weld).
Best regards
Michael Rasmussen
ZeroTurnaround
[1] http://hg.openjdk.java.net/jdk9/jdk9/hotspot/file/tip/src/share/vm/runtime/signature.cpp#l222
[2] https://gist.github.com/anonymous/abbd5ed146b39f4ce3ba0b84b0edc8e6
More information about the hotspot-dev
mailing list