Skip to content
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.

Commit

Permalink
Fix array types not being handled
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Dec 4, 2019
1 parent 0ac0108 commit ac8bc8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<groupId>me.coley</groupId>
<artifactId>jremapper</artifactId>
<url>https://github.com/Col-E/JRemapper/</url>
<version>2.2.0</version>
<version>2.3.0</version>
<name>JRemapper</name>
<description>A manual java bytecode deobfuscator</description>
<!--
Variables
-->
<properties>
<asm.version>6.2.1</asm.version>
<cfr.version>132</cfr.version>
<asm.version>7.2</asm.version>
<cfr.version>148</cfr.version>
</properties>
<!-- Additional repo's -->
<repositories>
Expand Down
2 changes: 2 additions & 0 deletions src/me/coley/jremapper/parse/RegionMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,8 @@ private String getMethodDesc(MethodDeclaration md) {
* {@link #getNameLookup(String)} or if it is a primitive or void type.
*/
private String getDescriptor(Type type) {
if (type.isArrayType())
return "[" + getDescriptor(type.asArrayType().getComponentType());
return isPrim(type) ? primTypeToDesc(type) : typeToDesc(type);
}

Expand Down

0 comments on commit ac8bc8b

Please sign in to comment.