summaryrefslogtreecommitdiff
path: root/ojluni/src/lambda/java
AgeCommit message (Collapse)Author
2019-08-30Add TEST_MAPPINGs for java.lang and java.util and subpackages.Pete Gillin
This adds package-level mappings to the appropriate test packages. There are a few special cases, such as running the JSR166 tests for java.util.concurrent. Test: treehugger Bug: 130283485 Change-Id: I0a8494845ee298f6293277fdcc1e6dad120f4e58
2016-08-16java.lang.invoke: Add MethodHandleInfo.Narayan Kamath
This interface is being introduced ahead of MethodHandles.Lookup to break a circular dependency. test: MethodHandleInfoTest / make docs bug: 30550796 Change-Id: I0f2b5f3dfcbfb3f4b3cc8a2ee495f928b4f9d159
2016-08-02Fix error prone build.Narayan Kamath
We need to bring back stubs for MethodType / LambdaConversionException to avoid build issues when targeting older SDKs. bug: 30550796 test: make checkbuild; make -j39 javac-check RUN_ERROR_PRONE=true Change-Id: I3c8a2ff296a51c0d9a552cf0e6cbf1815c680da8
2016-08-01java.lang.invoke: Add implementation of MethodType.Narayan Kamath
Imported from OpenJdk8u60. The only significant changes are that : - The adapter / lambda-form caches on MethodType / MethodTypeForm has been removed because it will not be used on Android. - Several unused package private methods have been removed. - Links to MethodHandle API have temporarily been replaced with @code markers. They will be resurrected when the MethodHandle class is imported. All changes have been annotated with change markers. bug: 30550796 test: make checkbuild + MethodTypeTest on host / target. Change-Id: I6e745d940f5f2949e40ff96fda5f91ba2afa267e
2016-07-22java.lang.invoke: Add exception classes to core-oj.jar.Narayan Kamath
Also removes the classes from stubs. Change-Id: I5c2a2afc7db4eba2dd9798097162b0ef440880a9 Test: make checkbuild docs
2016-03-08Port java.util.Comparator{,s} from OpenJDK8Yi Kong
Also adds tests for java.util.Comparator API. Source files are taken from jdk8u60. Bug: 27427010 Change-Id: Id71eb7fa92c28720c13da8fd0f5f193151b6a43d
2016-02-09Stubs required for javac to compile lambda codeNeil Fuller
In order for javac to compile code with (non-serializable) lambdas the included classes are required. These are based on OpenJDK 8 source code which has then been stubbed. The stubs are only required for build paths that use javac (e.g. javadoc) and are not to be deployed to a device. Bug: 26753820 (cherry-picked from commit 35eb86d88d048c5010ca406a8d543a54b84ca7b8) Change-Id: I1de207b54865ded4c0582dd2f3c3f8f9bebda11f