summaryrefslogtreecommitdiffstats
path: root/jack-tests/tests/com/android
Commit message (Collapse)AuthorAgeFilesLines
* During shrinking generate error if they are unknow typesmikaelpeltier2015-04-293-0/+8
| | | | | | | | | | - When shrinking all used types must be passed into classpath, without these types into classpath, Jack could shrink class members that it should not. Bug: 20135591 Change-Id: I13a82b4cc47da27fa3f12330df9b630ea6628f48
* Explicitely ignore some tests with Jill test toolchainJean-Marie Henaff2015-04-298-3/+527
| | | | | Bug: 20157629 Change-Id: I91bfcf55377cfdabaa0f52eede4e41cf5748d7c5
* Make FrontEndTests.testConflictingPackage001 deterministYohann Roussel2015-04-281-0/+2
| | | | | | | | | Looks like an Ecj problem is making it report an error or a warning depending on the compiled sources order. This is just a workaround for the test, it does not fixes the reporting problem. Bug: 20151080 Change-Id: Ib3eb99d1ed2e88d774891abbc14083e5696abc12
* Merge "Add new Shrinking tests" into ub-jackmikaelpeltier2015-04-281-0/+52
|\
| * Add new Shrinking testsmikaelpeltier2015-04-281-0/+52
| | | | | | | | | | | | | | | | - These test was written to show the different behavior between using imported jars or not. The class in lib contains a Class.ForName with an existing class that should be kept when the library is used as an imported library. Change-Id: I306ce629d27c4ee9c47f6203e05fc3fd1d2ee038
* | Merge "Revert "During shrinking generate error if they are unknow types"" ↵Mikael Peltier2015-04-284-140/+1
|\ \ | | | | | | | | | into ub-jack
| * | Revert "During shrinking generate error if they are unknow types"Mikael Peltier2015-04-284-140/+1
| | | | | | | | | | | | | | | | | | This reverts commit 88ac57db8ef6442d2a87aacad089104b488052e0. Change-Id: I67a420bcc60bf0ccbea0af30a551e3326d18e420
* | | Fix ClassCastException on useless qualifier errorYohann Roussel2015-04-283-4/+59
|/ / | | | | | | Change-Id: I8442a0e196cc598f6afd7db84173936abb26e87a
* / During shrinking generate error if they are unknow typesmikaelpeltier2015-04-284-1/+140
|/ | | | | | | | | - When shrinking all used types must be passed into classpath, without these types into classpath, Jack could shrink class members that it should not. Bug: 20135591 Change-Id: I4b4b03581141df0e40b1f27ccfc2f3a481b5d069
* Merge "Be more precise in test toolchain request in ClasspathTests" into ub-jackJean-Marie Henaff2015-04-271-1/+1
|\
| * Be more precise in test toolchain request in ClasspathTestsJean-Marie Henaff2015-04-161-1/+1
| | | | | | | | Change-Id: I49d55b32fc84bd4a4527fc6ae6662e67ec943dd2
* | Fix mapping comparison order in shrob testsJean-Marie Henaff2015-04-2711-20/+26
| | | | | | | | | | | | | | | | | | | | - Some files to be comapred were passed in the wrong order. - Changed order in test framework API to match how it's been done in other Comparators. Bug: 20150139 Change-Id: I999886b15781c1a170d578c1d8b31b6325c783af
* | Add listing comparison to ShrinkTests.test21()Jean-Marie Henaff2015-04-231-0/+12
| | | | | | | | | | | | | | | | | | Reference listing was used for ShrinkTests.test21_001() but not for this extra test which splits compilation into 3 steps. Bug: 20151065 Change-Id: I1aedfd4bfc19162b0ffe7f972379ba272addab6b
* | Modify AbstractTestTools api to detect error at compile timeJean-Marie Henaff2015-04-161-4/+3
|/ | | | | | Do for reference toolchain what's already been done for candidate toolchain. Change-Id: I375cf829e24040cdcad1b4f79c8c436915ffd38a
* Merge "Modify AbstractTestTools api to detect error at compile time" into ↵mikaelpeltier2015-04-132-3/+3
|\ | | | | | | ub-jack
| * Modify AbstractTestTools api to detect error at compile timemikaelpeltier2015-04-092-3/+3
| | | | | | | | Change-Id: Id88be0584579d551e40d95704320dcf0ede87610
* | Merge changes I73ec2f53,I77e2d9d8 into ub-jackYohann Roussel2015-04-094-2/+72
|\ \ | |/ |/| | | | | | | * changes: TypeDeclaration.binding may be null Test duplicate classes compilation error
| * TypeDeclaration.binding may be nullYohann Roussel2015-04-082-3/+0
| | | | | | | | | | | | | | | | In case of some compilation error problems. Bug: 19943598 Change-Id: I73ec2f5300338bfb60e15fa726140e6591527585
| * Test duplicate classes compilation errorYohann Roussel2015-04-083-0/+73
| | | | | | | | | | Bug: 19989019 Change-Id: I77e2d9d8a9465ed27f180bbc664f248c37dc9e33
* | Avoid ClassCastException when toolchain jack-cli is usedmikaelpeltier2015-04-091-1/+1
|/ | | | Change-Id: If75202bbc6b12a816fac30812d6dfeb2aaa6b4af
* Merge "Modify repackageclasses test to use a package separator" into ub-jackBenoit Lamarche2015-04-082-2/+2
|\
| * Modify repackageclasses test to use a package separatorBenoit Lamarche2015-04-082-2/+2
| | | | | | | | | | | | Bug: 20118240 Change-Id: I09ae7e35b7d9085cf2efe87134005abedbc07902
* | Merge "Fix bug into Java parser" into ub-jackmikaelpeltier2015-04-086-0/+206
|\ \
| * | Fix bug into Java parsermikaelpeltier2015-04-076-0/+206
| | | | | | | | | | | | | | | | | | Bug: 19613702 Bug: 19910266 Change-Id: I6d2c7011ba92e0c0b6f97cd13264ef67a19700a3
* | | Merge "Small changes around Jayce-related exceptions" into ub-jackBenoit Lamarche2015-04-083-26/+22
|\ \ \ | |/ / |/| |
| * | Small changes around Jayce-related exceptionsBenoit Lamarche2015-03-273-26/+22
| | | | | | | | | | | | | | | Bug: 19787495 Change-Id: I40f9c10404544ee1455d4996a91d64f72089570c
* | | Merge "Fix issue with not existing classpath entry" into ub-jackBenoit Lamarche2015-04-071-7/+24
|\ \ \
| * | | Fix issue with not existing classpath entryBenoit Lamarche2015-04-071-7/+24
| | |/ | |/| | | | | | | | | | | | | | | | We must check existence before permissions. Bug: 20025079 Change-Id: I19d8838e2a399806bc8b70bb1dab399537c7d158
* | | Merge "Allow to use two enums with the same simple name into a class" into ↵mikaelpeltier2015-04-0711-12/+152
|\ \ \ | |/ / |/| | | | | ub-jack
| * | Allow to use two enums with the same simple name into a classmikaelpeltier2015-04-0711-12/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - To support partial recompilation with enum used into a switch statement, Jack generates a field and a method allowing to get a mapping between an enum field and an integer that will be used into a switch statement. This generated code must not take only the simple name of enumeration as discriminant, since several enum can have the same name. Thus, it is better to use his fully qualified name. Bug: 19639131 Change-Id: I2dbeef61e24e0e7b7250d3f0cfcbb619bd6e7829
* | | Add tests about BlockScope.getEmulationPathYohann Roussel2015-04-0314-0/+512
|/ / | | | | | | | | Bug: 19952019 Change-Id: I6cd7b8bebc4564f33359a550e3c56f1894301e15
* | Add a test with duplicated source filesmikaelpeltier2015-04-034-0/+97
| | | | | | | | | | | | Bug: 19678916 Change-Id: Ic6d9e5e0fdb1f9ad79f06aee721be90911a4df71
* | Add 3 frontend testsYohann Roussel2015-04-038-63/+269
| | | | | | | | | | | | | | | | | | | | | | | | Related to cases where ecj could create TypeDeclaration with a null binding. - testConflictingPackage001 and testConflictingPackage002 because CompilationUnitScope.buildTypeBinding is showing an evidence of TypeDeclaration with a null binding in case of package conflict. - testUninstanciableLocalClass001 because a comment in SafeASTVisitor (gwt) is saying that uninstanciable local classes may lead to TypeDeclaration with a null binding. Change-Id: I4aa5e9c00ff162d311b0dbd7bc16f64582a0e89c
* | Rename JAnnotation to JAnnotationTypemikaelpeltier2015-04-011-2/+2
|/ | | | | | | | - Rename also JLookup.getAnnotation to JLookup.getAnnotationType, JDefinedAnnotation to JDefinedAnnotationType and JPhantomAnnotation to JPhantomAnnotationType Change-Id: Ic9f2890201167f0dc437a1446faad4bd9fbec72f
* Add InputStreamProvider and OutputStreamProvidermikaelpeltier2015-03-231-1/+1
| | | | | | | - Add common interface between VFile and StreamFile that will allow to read or write them. Change-Id: I1721932c7e68770edae53a431d4a9a3ca664ae72
* Stop creating message in NonSuchFileException unnecessarilyPiotr Jastrzebski2015-03-191-2/+2
| | | | | | | | | | | | | | | | NoSuchFileException is thrown 29686 times during compilation of Music app but its message is not obtained even once. location.getDescription is not a cheap operation and message creation uses string concatenation as well. Instead of creating a message eagerily this change stores a reference to a location in the NonSuchFileExpection object and creates the message only when it's needed. This speeds up the creation of NoSuchFileException almost 40 times which makes a difference if we multiply it by almost 30k times it's created. We will also save on GC as it saves at least 3 object creations per NoSuchFileException which makes over 90k object creations saved. Fix also other exceptions in com.android.sched.util.file. Change-Id: Ibc2a413891a2e24be786f440196e9a4276215cc0
* Remove reference to StandardCharsetsYohann Roussel2015-03-181-3/+5
| | | | | | Since it's java 7. Change-Id: Iaee93f5e074c0fb4c7dead6aee51a95e4660c7d6
* Adapt test-opcodes.mk to renaming of test sourcesYohann Roussel2015-03-171-4/+4
| | | | | | Renaming was done by commit 24bdf084c107acaeb33f89fcbef97ce276c3a749 Change-Id: I7072774ba9cbfc92a0899d3e1a0ca9f532eda7db
* Accept more tests to run with cli-based ToolchainsJean-Marie Henaff2015-03-1711-10/+59
| | | | | | | About 200 tests were skipped with those toolchains. Try to reduce this number. Change-Id: I7713638275ca5fa1569dd141c367a683e9c330ae
* Load default libraries from jack.jarYohann Roussel2015-03-172-15/+28
| | | | | | | | For now the only default library contains the jack annotations. The default libraries can be ignored by "--no-default-libraries". Bug: 17803510 Change-Id: I0eb0c1a535e1d4ff808c744ba7c1924e4dd4aee6
* Speed up Ant scriptJean-Marie Hénaff2015-03-164-0/+0
| | | | | | | This reverts commit be49dc7d7d939391a5646a174df8eebe77b31fef, but also fixes a bug that made jack tests fail which is why it had been reverted. Change-Id: Iee6e3b05549c3f603558910eb45149eb88333f0a
* Revert "Speed up Ant script"Benoit Lamarche2015-03-124-0/+0
| | | | This reverts commit 6f4d464b8728997b9e7052ac8ed169272859b229.
* Add property for classpathBenoit Lamarche2015-03-121-2/+22
| | | | Change-Id: I5f99e0a9355d317b0c0cc9e037ba663937558305
* Speed up Ant scriptJean-Marie Henaff2015-03-124-0/+0
| | | | | | | | | | | | Avoid useless recompilation Use <uptodate> to check if something must be done Use <dependset> to ensure that a renamed type won't have its old class file packaged into the final jar file by wiping out all the output direcftory content if a change has been made. Change-Id: I54322309d7a40ecff3c45422fb3e96cccd8d0192
* Move all classes of DexComparator project into comparator packagemikaelpeltier2015-03-112-3/+3
| | | | | | - Replace also occured by occurred into all toolchains Change-Id: I47e8fba64573509ea8372cfc5ddfae5639036c7a
* Merge "Ignore test which require "rot13" for cli based toolchain" into ub-jackJean-Marie Henaff2015-03-113-9/+9
|\
| * Ignore test which require "rot13" for cli based toolchainJean-Marie Henaff2015-03-113-9/+9
| | | | | | | | | | | | | | These tests require a name provider "rot13" which is not packaged inside regular jack.jar. Change-Id: Iab6af2f8e9092ef2821e9a57a51569aaa288c4f2
* | Adapt some long tests to the new APImikaelpeltier2015-03-112-6/+4
|/ | | | Change-Id: Ib35dfd9ea5c3166fd3d6d3dbcdf5d10fdafb3e26
* Jack support for annotation processor.Yohann Roussel2015-03-1013-103/+726
| | | | | | | Does not include any support for including class files generated by annotation processors. Change-Id: Id4006301d588875f822ff84fa90db10fd616ab00
* Merge "Adapt shrob tests to get rid of setShrobFlags" into ub-jackJean-Marie Henaff2015-03-106-58/+75
|\