-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed UnsupportedOperationException: PermittedSubclasses requires ASM9 (
#156)
- Loading branch information
1 parent
04f694a
commit 6fcc3ab
Showing
7 changed files
with
58 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/test/resources/com/yworks/yguard/obf/asm/SealedClassImpl.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.yworks.yguard.obf.asm; | ||
|
||
public final class SealedClassImpl extends SealedSerializableClass { | ||
public SealedClassImpl() { | ||
super(666); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/test/resources/com/yworks/yguard/obf/asm/SealedSerializableClass.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.yworks.yguard.obf.asm; | ||
|
||
import java.io.Serializable; | ||
|
||
public sealed class SealedSerializableClass implements Serializable permits SealedClassImpl { | ||
private int data; | ||
|
||
public SealedSerializableClass( final int data ) { | ||
this.data = data; | ||
} | ||
|
||
public int getData() { | ||
return data; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/test/resources/com/yworks/yguard/obf/asm/SimpleClass.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.yworks.yguard.obf.asm; | ||
|
||
public class SimpleClass { | ||
private int data; | ||
|
||
public SimpleClass( final int data ) { | ||
this.data = data; | ||
} | ||
|
||
public int getData() { | ||
return data; | ||
} | ||
} |