??????????Scala vs Java8
???????????? ???????[ 2015/5/27 13:44:30 ] ???????????????
????Lambda????
????Lambda?????????scala.runtime.AbstractFunction1?????????????map() ????????????????д??? apply() ??????apply()???????£?
????//??δ????????this????????????????????????????????????????????????????????apply????????????????
????aload_0//????this
????aload_1//?????????????
????checkcast java/lang/String//????????????? - ??????Object
????// ????synthetic???apply()????
????invokevirtual myLambdas/Lambda1$$anonfun$1/apply(Ljava/lang/String;)I
????//??????
????invokestatic scala/runtime/BoxesRunTime/boxToInteger(I)Ljava/lang/Integer
????areturn
?????????????.length() ??????????????????apply?????У??÷??????????????????????????????????????????
?????……??????ó??????·?????
????aload_1
????invokevirtual java/lang/String/length()I
????ireturn
?????????????????д????м??????????????????????????????????????????????????????????????????????????Lambda??????????Scala??д??????????C????????????????????????????????
???????????Java 8???????????????????????????????java?????????????????
????Java 8??????μ???
????Java 8?????????????????????и???????????????????????????????????????????? stream() ??????????????????Щ???????????????д???????μ?????????Lambda????????????????μ? invokeDynamic ??????????Java 7???????????????????????????Lambda??????
????aload_1 // ???????????
????//????stream()????
????invokeinterface java/util/List.stream:()Ljava/util/stream/Stream;
????//invokeDynamic????????
????invokedynamic #0:apply:()Ljava/util/function/Function;
????//????map()????
????invokeinterface java/util/stream/Stream.map:
????(Ljava/util/function/Function;)Ljava/util/stream/Stream;
????InvokeDynamic?????????JVM?????Java 7??????????????JVM????????????????????????????????????????????е???????????????????????????JVM??ɡ?
???????????????????invokedynamic????????????????????????Lambda????????lambda$0???????????invokedynamic????????????????????Lambda?????????????????????????
????//??????lamda$0???????????????????????????????
????lambdas/Lambda1.lambda$0:(Ljava/lang/String;)Ljava/lang/Integer;
?????洢??.class?????????????У???????#0???????????????μ??????????????淶???????????????????θ?????????????Takipi???????????檔
????Lambda????
??????δ???????????Lambda????????????????????????????????????length()????????????????????????????????????????????????????????Scala?????????????this????
????aload_0
????invokevirtual java/lang/String.length:()
????invokestatic java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
????areturn
????????invokedynamic??????????????????????????????????????? map() ???????????????????????????????д???????????
???????
????Java??????????????????“???”??????????????????????????????Lambda???????????÷?????????Ч????????????????????????????Lambda????????????????????????з?????
????Java 8????Java 7??????μ??????????????????????????????????Lambda????????????????????????Java????“???”????????????Щ?????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????