Victor Petukhov
b0debbe4c9
Add forced mark "isDeprecated" as false for missing types among javac types
2020-12-18 19:32:04 +03:00
Dmitriy Novozhilov
bdfb71b149
[FE] Add sealed classes related properties to java model
2020-12-09 22:54:28 +03:00
Denis.Zharkov
513f7177ca
Support loading Java records
...
^KT-43677 In Progress
2020-12-09 16:29:03 +03:00
Igor Yakovlev
4b8f1bb362
[ULC] Add LanguageVersionSettings to CliLightClassGenerationSupport
...
+ refactoring
2020-09-11 12:49:04 +03:00
Dmitriy Novozhilov
b81c0e91d5
Replace DescriptorVisibility with Visibility in Java model classes
2020-09-04 11:42:51 +03:00
Dmitriy Novozhilov
d1fd1da56f
Rename Visibility to DescriptorVisibility
2020-09-04 11:07:42 +03:00
Kevin Bierhoff
7448761dfd
only stub default constructor when compiling against .java source files
2020-04-07 17:48:39 +02:00
Alexander Udalov
4156a9c80b
Extract javac-wrapper into a separate module
...
It was actually a separate module before the grand build refactoring in
61dfb75e0e .
2020-03-28 21:30:03 +01:00
Mikhail Glukhikh
393047883e
JavacWrapper: add Kotlin classes to classpath only in APT mode
2019-11-21 14:25:13 +03:00
Mikhail Glukhikh
89a582b694
JavacWrapper: perform makeOutputDirectoryClasses hack only in non-APT mode
...
For some reason, working without APT requires this call in JavacWrapper.
From the other hand, working without APT does not require
Kotlin class files to be in javac classpath.
2019-11-21 14:25:08 +03:00
Mikhail Glukhikh
87e2f9d96b
Add CLI test for K/javac project with K/J interdependency
...
Yet this test fails if JavacWrapper does not add Kotlin output dir to classpath
2019-10-18 12:02:04 +03:00
Mikhail Glukhikh
9f3d834b2a
JavacWrapper: optimize building of tree-based stuff
2019-10-18 11:56:18 +03:00
Mikhail Glukhikh
39ff04e043
JavacWrapper: optimize toJavacList away
2019-10-18 11:55:59 +03:00
Mikhail Glukhikh
f74b3e6ece
SymbolBasedClassifierType: fix exception in case with not found class
...
This can arise with non-transitive dependencies
#KT-33932 Fixed
2019-10-03 11:16:25 +03:00
Mikhail Glukhikh
6b8f4b4b4e
SymbolBasedClass: cleanup code
2019-10-03 11:16:25 +03:00
Mikhail Glukhikh
ac1b957f8d
Symbol based types: cleanup code
2019-10-03 11:16:25 +03:00
Mikhail Glukhikh
4bb5fbaa4d
JavacWrapper: add output directory to classpath to see Kotlin files
...
Without this commit, Java cannot see Kotlin in some cases
Controversial: probably javac should be able to find Kotlin files
inside its existing tabs without this directory in classpath
2019-10-03 11:16:24 +03:00
Mikhail Glukhikh
b75e630932
JavacWrapper: minor renames to make code clearer
2019-10-03 11:16:24 +03:00
Mikhail Glukhikh
0c662a5a34
JavacWrapper: remove code duplication around getVisibility
2019-10-03 11:16:24 +03:00
Mikhail Glukhikh
bbd8fb8b23
JavacWrapper: add support for JvmPackageName annotation
...
This fixes previously added testWithStdLib/streams.kt test
2019-10-03 11:16:24 +03:00
Mikhail Glukhikh
f6ff580852
Cleanup code: JavacWrapper
2019-10-03 11:16:23 +03:00
Mikhail Glukhikh
2bec60a3dd
Fix potential NPE in JavacWrapper
2019-10-03 11:16:23 +03:00
Mikhail Glukhikh
fb788dc4c0
Fix null Java type argument problem & add relevant test
2019-03-14 17:56:23 +03:00
Alexander Udalov
8ab9226805
Fix loading default Java annotation values in actual typealias from binary classes
...
#KT-22704 Fixed
2018-12-28 13:02:15 +01:00
Denis Zharkov
f153d97f40
Avoid multiple subsequent reading of the same class-file in front-end
...
^KT-23466 Fixed
2018-12-13 20:38:24 +03:00
Alexander Udalov
899002b681
Refactor JavaEnumValueAnnotationArgument and implementations
...
Only require implementations to be able to compute the enum class name
and the corresponding entry name. Only this should be necessary to
correctly resolve the argument; the resolvers will find the
corresponding class descriptor if necessary
2018-01-18 12:49:38 +01:00
Alexander Podkhalyuzin
3f8170d369
Clean idea files generated on the gradle import, add them to .gitignore
2017-09-19 23:58:27 +02:00
baratynskiy
67fdd9f76e
javac-wrapper: fixes after rebase and review
2017-08-29 18:01:36 +03:00
baratynskiy
2dc0c55e76
javac-wrapper: get rid of TreePath because it is slow
2017-08-29 18:01:36 +03:00
baratynskiy
1b0d7ff5be
javac-wrapper: constant evaluator
2017-08-29 18:01:36 +03:00
baratynskiy
4f180e1292
javac-wrapper: identifier resolver
2017-08-29 18:01:36 +03:00
baratynskiy
01883a41cb
javac-wrapper: refactoring, fixes and tests
2017-08-29 18:01:36 +03:00
baratynskiy
8494e54608
javac-wrapper: -Xuse-javac -> -Xuse-javac and -Xcompile-java
2017-08-29 18:01:36 +03:00
Denis Zharkov
f8f0c0b6d7
Load enum/array annotation arguments for not found classes
...
It's necessary to load type qualifier related annotations
without JSR305 annotations being in the classpath
#KT-19419 In Progress
2017-08-11 10:18:41 +07:00
Mikhail Glukhikh
dfe2c16bc7
More cleanup: lift return / assignment out
2017-07-10 12:59:58 +03:00
Denis Zharkov
79e14f88e4
Support package level annotations in Java
...
#KT-10942 In Progress
2017-07-03 17:55:37 +03:00
Mikhail Glukhikh
840847e47c
Code cleanup: several inspections applied
2017-06-29 16:25:57 +03:00
Alexander Udalov
7febd846e8
Export 'intellij-core' in module 'frontend'
...
Remove intellij-core from dependencies of modules which already depend
on frontend or any module that exports frontend (such as frontend.java)
2017-06-06 14:29:26 +03:00
Alexander Udalov
f6c263b54d
Remove dependency of module 'javac-wrapper' on 'cli' and 'cli-common'
...
This breaks the circular dependency between them
2017-06-06 14:29:22 +03:00
baratynskiy
1eb1735ac9
Return from compile() function immediately if javaFiles collection is empty
2017-05-17 17:49:53 +03:00
baratynskiy
eb85e9f5f3
Introduce isFromSourceCodeInScope function
...
See `VirtualFileBoundJavaClass` interface
2017-05-17 17:49:33 +03:00
baratynskiy
91412b0ee9
Add tools.jar for JPS plugin
2017-05-17 17:48:59 +03:00
baratynskiy
5eea3b6569
Introduce experimental -Xuse-javac compilation mode
...
In this mode, javac AST and Symbol files are used during
Kotlin compilation instead of PSI / binary stuff.
Later, they are reused for Java file compilation.
javac in this mode is integrated into kotlinc.
2017-05-17 17:48:17 +03:00