Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shannah/retrolambda_issue_55
Project to accompany retrolambda issue 55
https://github.com/shannah/retrolambda_issue_55
Last synced: about 1 month ago
JSON representation
Project to accompany retrolambda issue 55
- Host: GitHub
- URL: https://github.com/shannah/retrolambda_issue_55
- Owner: shannah
- Created: 2015-05-14T17:10:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-14T17:11:59.000Z (over 9 years ago)
- Last Synced: 2023-04-01T05:43:42.938Z (over 1 year ago)
- Language: Shell
- Size: 6.74 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Test to accompany issue https://github.com/orfjackal/retrolambda/issues/55
To run the test:
~~~~
sh test.sh
~~~~Output:
~~~~
Steves-iMac-2:retrolambda_issue_55 shannah$ sh test.sh
Retrolambda 2.0.2
Bytecode version: 49 (Java 5)
Default methods: false
Input directory: input_classes
Output directory: output_classes
Classpath: input_classes:CodenameOne.jar
Saving lambda class: com/codename1/issue1156/LambdaTest$$Lambda$1
Error: java.lang.reflect.InvocationTargetException
StackMap: length = 0x7
00 02 59 07 00 1A 04public void start();
descriptor: ()V
flags: ACC_PUBLIC
Code:
stack=7, locals=4, args_size=1
0: aload_0
1: getfield #64 // Field current:Lcom/codename1/ui/Form;
--
Error: java.lang.reflect.InvocationTargetException
StackMap: length = 0x3
00 01 0Fpublic void stop();
descriptor: ()V
flags: ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
0: aload_0
1: invokestatic #103 // Method com/codename1/ui/Display.getInstance:()Lcom/codename1/ui/Display;
~~~~The test basically runs javap -verbose on a class from the input classes
(A class was chosen at random amongst several classes that exhibit this behaviour) and shows
that it doesn't produce a line like `Error: java.lang.reflect.InvocationTargetException`.It then runs retrolambda and checks the corresponding output class with `javap` to show that it
includes a line like `Error: java.lang.reflect.InvocationTargetException`