[platform] temporarily reverts ASM #317621 fix (IDEA-158326)

This commit is contained in:
Roman Shevchenko
2016-07-08 16:59:40 +02:00
parent 821c32a7ef
commit c0173fd5bb
4 changed files with 23 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
Index: org/objectweb/asm/Type.java
===================================================================
--- org/objectweb/asm/Type.java
+++ org/objectweb/asm/Type.java
@@ -377,16 +377,7 @@
*/
public static Type getReturnType(final String methodDescriptor) {
char[] buf = methodDescriptor.toCharArray();
- int off = 1;
- while (true) {
- char car = buf[off++];
- if (car == ')') {
- return getType(buf, off);
- } else if (car == 'L') {
- while (buf[off++] != ';') {
- }
- }
- }
+ return getType(buf, methodDescriptor.lastIndexOf(')') + 1);
}
/**
+1
View File
@@ -41,6 +41,7 @@
<target name="patch" depends="unpack">
<patch dir="${src.dir}" strip="0" patchfile="1_version_check.patch" failonerror="true"/>
<patch dir="${src.dir}" strip="0" patchfile="2_coverage_fix.patch" failonerror="true"/>
<patch dir="${src.dir}" strip="0" patchfile="3_317621_fix_temp_revert.patch" failonerror="true"/>
<delete file="${src.dir}/org/objectweb/asm/optimizer/ModuleInfoBndPlugin.java" quiet="true"/>
</target>
BIN
View File
Binary file not shown.
Binary file not shown.