-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff353f4
commit 008c03e
Showing
6 changed files
with
91 additions
and
74 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
51 changes: 0 additions & 51 deletions
51
obfuscator/src/test/java/by/radioegor146/StringConcatFactoryTest.java
This file was deleted.
Oops, something went wrong.
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
11 changes: 11 additions & 0 deletions
11
obfuscator/test_data/tests/pull-requests/PullRequest72/Main.java
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,11 @@ | ||
public class Main { | ||
public static void main(String[] args) throws Exception { | ||
try { | ||
Class.forName("java.lang.invoke.StringConcatFactory"); | ||
} catch (Exception e) { | ||
System.out.println("No java/lang/invoke/StringConcatFactory found, probably Java 1.8 or older"); | ||
return; | ||
} | ||
Class.forName("TestStringConcatFactory").getMethod("test").invoke(null); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
obfuscator/test_data/tests/pull-requests/PullRequest72/TestStringConcatFactory.j
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,19 @@ | ||
.version 55 0 | ||
.class public super TestStringConcatFactory | ||
.super java/lang/Object | ||
|
||
.method public static test : ()V | ||
.code stack 4 locals 1 | ||
L0: getstatic Field java/lang/System out Ljava/io/PrintStream; | ||
L3: iconst_1 | ||
L4: iconst_2 | ||
L5: iconst_3 | ||
L6: invokedynamic [_28] | ||
L11: invokevirtual Method java/io/PrintStream println (Ljava/lang/String;)V | ||
L14: return | ||
L15: | ||
.end code | ||
.end method | ||
.bootstrapmethods | ||
.const [_28] = InvokeDynamic invokeStatic Method java/lang/invoke/StringConcatFactory makeConcatWithConstants (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; String "\u0001-\u0001-\u0001-\u0002-\u0002-\u0002" Double 3.14e0 Int 123 Int 1 : makeConcatWithConstants (III)Ljava/lang/String; | ||
.end class |