Mikhail Zarechenskiy
d3fd96ceed
Parse collection literals as atomic expressions
2017-03-22 17:59:58 +03:00
Dmitry Jemerov
3c7678092e
Don't mark compiler-created PSI elements as generated
...
This saves some memory on storing the generated flag in the PsiElement
userdata and time required to store the flag.
2017-03-22 13:59:21 +01:00
Alexander Udalov
dc3aa26e3f
Ignore getMembersOfStandardJavaClasses light analysis test
...
See #KT-16616
2017-03-22 14:33:57 +03:00
Alexey Sedunov
38f9e99d91
Kotlin Facet: Fix argument merging
...
#KT-16982 Fixed
2017-03-22 13:36:06 +03:00
Dmitry Jemerov
3aedf2548c
Don't create empty list for Call arguments
2017-03-22 10:40:19 +01:00
Dmitry Jemerov
51c7fc9f73
Don't use UserDataHolder in SlicedMapImpl, use KeyFMap directly
2017-03-22 10:37:07 +01:00
Dmitry Jemerov
f45511b983
Don't recreate Name instances for special resolve constructs
2017-03-22 10:35:16 +01:00
Yan Zhulanow
7a5f94129c
Add ClassBuilderMode.KAPT3 tests
2017-03-21 20:49:36 +03:00
Yan Zhulanow
e25e19c4d6
Refactoring: Remove light analysis test data
...
The light analysis test data is not needed anymore cause the light analysis result is now automatically checked against the one from the full analysis.
2017-03-21 20:49:36 +03:00
Yan Zhulanow
c50881fd02
Refactoring: Extract light analysis tests from box tests
2017-03-21 20:49:34 +03:00
Ilya Chernikov
4043f491da
minor: replace Pair with data class in daemon client connectAndLease call
...
backport from 1.0.7
2017-03-21 16:30:47 +01:00
Ilya Chernikov
4b430b49a7
Implement source sections compiler plugin
...
allows to compile only parts of the source files, denoted by top-level
"sections" (function with lambda param calls), but preserving original
file line/column numbers for easier diagnostics. Allow e.g. to compile
gradle "buildscript" section without preprocessing original file in
advance. See tests for examples.
2017-03-21 16:30:46 +01:00
Ilya Chernikov
63c276d444
Create extension points and register plugins earlier...
...
to allow plugins to affect source files creation
2017-03-21 16:30:45 +01:00
Alexander Udalov
7dfa3bea18
Update tools & libraries projects to use JDK 8 when needed
2017-03-21 17:45:53 +03:00
Dmitry Jemerov
ba9213234c
Increase -Xmx for running Ant from AntTaskTestGenerated
...
The current value is no longer sufficient when running under JDK 8.
2017-03-21 15:19:55 +01:00
Pavel V. Talanov
06fd1f3c44
Drop unused LibrarySourceHacks
2017-03-21 16:20:02 +03:00
Pavel V. Talanov
4c94d931fa
findDecompiledDeclaration: narrow decompiled declaration search scope
...
Search scope of library that descriptor originated from
Introduce API that matches binaries and its' sources via IdeaModuleInfos
2017-03-21 16:19:56 +03:00
Dmitry Jemerov
0a586291b6
Check jar name before trying to load JS library version
...
#KT-16596 Fixed
2017-03-21 14:01:37 +01:00
Alexander Udalov
d4500878cb
Do not strip some classes from xercesImpl.jar in compiler.pro
...
Note that with this config, the kotlin-compiler.jar's size is increased
by 1.5Mb
#KT-16968 Fixed
2017-03-21 13:03:19 +03:00
Alexander Udalov
555b3f12ee
Use LinkedHashSet instead of HashSet in DataFlowInfo.getCollectedTypes
...
This fixes DiagnosticsTestGenerated$Tests.testImplicitIntersection,
which began to fail after update to JDK 8 because the iteration order of
HashMap/HashSet has changed in JDK 8:
http://openjdk.java.net/jeps/180
http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/43bd5ee0205e
2017-03-20 18:46:09 +01:00
Mikhael Bogdanov
211b58ac6e
kt1770.kt test rewrote during migration to 171 platform
2017-03-20 18:46:08 +01:00
Alexander Udalov
999e1061b8
Update test data for ant task tests
...
Looks like javac 1.8 started to report compilation errors a bit
differently here
2017-03-20 18:46:07 +01:00
Alexander Udalov
449d1f6ad2
Fix KotlinVersionsTest, use SAX parser instead of DOM
2017-03-20 18:46:06 +01:00
Alexander Udalov
33e9e660c4
Fix JvmRuntimeDescriptorLoaderTestGenerated
...
- Use FULL_JDK instead of mock JDK in some tests because mock JDK is
created from JDK 6 and full JDK is now JDK 8, so there are differences
in the behavior in the compiler and at runtime
- Remove some '*.runtime.txt' files which were workarounds to JDK 6
reflection issues regarding generic inner classes; code in these tests
is now loaded exactly the same in the compiler and at runtime
- Change supertype in SupertypesAndBounds.kt: the class in the supertype
is not relevant to that test, it checks that annotations can be loaded
on types
2017-03-20 18:46:05 +01:00
Alexander Udalov
3c96099f7c
Fix compileJavaAgainstKotlin tests
...
- Use another API to get file name out of a javac diagnostic
(.getSource().getName()'s behavior changed in JDK 8)
- Delete .txt files for those tests which check that javac reported a
compilation error; the order and content of declarations in those
files is undefined
2017-03-20 18:46:05 +01:00
Mikhael Bogdanov
496a21254b
Black box update
2017-03-20 18:46:01 +01:00
Alexey Tsvetkov
40574d31ac
JPS tests: avoid using deprecated API
2017-03-20 18:46:00 +01:00
Dmitry Jemerov
3a8cf68541
Keep class file version during shrinking; generate Java 8 bytecode
...
sometimes
2017-03-20 18:45:59 +01:00
Dmitry Jemerov
4cae0538a8
Don't warn about ElementTraversal
...
IDEA now (since commit 6ff87c6) uses this class to build classpath
for Xerces, and we don't use Xerces
2017-03-20 18:45:59 +01:00
Dmitry Jemerov
0d86bdd216
Remove Java 6/7 warning from expected output of the compiler
2017-03-20 18:45:51 +01:00
Dmitry Jemerov
b9f326bfa1
Register MetaLanguage extension point in ParsingTestCase
2017-03-20 18:45:47 +01:00
Dmitry Jemerov
097ba45783
Fix service and EP registration according to changes in 2017.1
...
Remove ControlFlowFactory (which is now registered in the platform),
register MetaLanguage (new in 2017.1)
2017-03-20 18:45:46 +01:00
Dmitry Jemerov
12fc89f35d
Update to 171.SNAPSHOT to pick up fix for IDEA-169570; fix compilation
2017-03-20 18:45:41 +01:00
Nikolay Krasko
7da424d53f
Port setInPerformanceTest -> setInStressTest
2017-03-20 18:45:39 +01:00
Nikolay Krasko
d5aac7df25
Copy dropped method nameToCompare() to test utils
2017-03-20 18:45:33 +01:00
Nikolay Krasko
ed9e083008
Remove unused import
2017-03-20 18:45:31 +01:00
Alexey Tsvetkov
6d958eb32b
Fix dist by ignoring some library classes during compiler shrinking
2017-03-20 18:45:20 +01:00
Dmitry Jemerov
b101550cae
Advance idea.plugins.compatible.build
2017-03-20 18:45:19 +01:00
Dmitry Jemerov
e51018406f
register PsiElementFinder extensions before JavaPsiFacade is registered
2017-03-20 18:45:18 +01:00
Dmitry Jemerov
a2b0b3d6eb
fix compilation against branch 163
2017-03-20 18:45:15 +01:00
Nikolay Krasko
c6b9aebfcf
Minor: remove warning
2017-03-20 17:49:23 +03:00
Nikolay Krasko
afc0892d1f
Synchronize state of parser and lexer for LONG_TEMPLATE_ENTRY (KT-14865)
...
Lexer monitors "long string template" state end and will produce
LONG_TEMPLATE_ENTRY_END token when it is reached. If parser continues
without waiting for it, it will eventually get handling token that
will produce irrelevant error. Such behaviour also breaks lazy
elements (LAMBDA_EXPRESSION in this case) contract: range of parsed text
in eager mode should be same to one parsed in lazy mode.
#KT-14865 Fixed
2017-03-20 17:47:29 +03:00
Alexander Udalov
87ff70ee0f
Replace JS metadata version with '$ABI_VERSION$' in tests
...
Similarly to the JVM metadata version, this is done in order to avoid
changing any test data when the version is increased
2017-03-20 17:22:29 +03:00
Alexander Udalov
e6f6b0dad5
JS: merge LibrarySourcesConfig into JsConfig
2017-03-20 17:22:29 +03:00
Alexander Udalov
bf90cb5cc0
JS: support -Xskip-metadata-version-check for incompatible ABI libraries
...
Allow the compiler to read such libraries without any errors, at the
risk of crashing with an exception.
Also fix a minor bug in the diagnostic message in LibrarySourcesConfig
and in the corresponding test in KotlinJpsBuildTest
2017-03-20 17:22:29 +03:00
Alexander Udalov
30dfd5cc1b
JS: support '-Xskip-metadata-version-check' to allow pre-release libraries
2017-03-20 17:22:29 +03:00
Simon Ogorodnik
f56af41d1e
Fix TypeAliasConstructorDescriptor's to create only once when required
...
Some IDE features relates onto that same descriptors will remain same
between resolve calls
Fix it to be true for TypeAliasConstructorDescriptor's
#KT-16265 fixed
2017-03-20 16:55:40 +03:00
Mikhail Zarechenskiy
1a4b9cb228
Show warning for mod from built-ins since API=1.1
2017-03-20 00:45:18 +03:00
Mikhail Zarechenskiy
e4188f889e
Do not show warning for mod from built-ins when LV=1.0
...
#KT-16372 Fixed
2017-03-20 00:41:58 +03:00
Nikolay Krasko
f38753ee3c
Remove explicit AppScheduledExecutorService shutdown (commit revert)
...
Revert "Problem: manually shutdown AppScheduledExecutorService to allow compiler stop properly"
The commit was added during update to 162.1024.1 to fix hangs in ant
tasks on teamcity because of some thread created in
AppScheduledExecutorService service.
Remove the commit because can't reproduce those hangs under 162.2946
(Probably https://github.com/JetBrains/intellij-community/commit/12a079ef41882343bf83ef2a7dcee820b55fd154 fixed the hangs).
This should also be addressed in fix for https://youtrack.jetbrains.com/issue/IDEA-169562
This reverts commit 99a75021e1 .
2017-03-17 18:02:11 +03:00