Rolling back commits related to Unit -> Void? confersion in RMI interface
since it breaks the compatibility and doesn't actually help - the problem with NoClassDef Unit is apparently elsewhere.
This commit is contained in:
+1
-2
@@ -33,9 +33,8 @@ open class BasicCompilerServicesWithResultsFacadeServer(
|
|||||||
) : CompilerServicesFacadeBase,
|
) : CompilerServicesFacadeBase,
|
||||||
UnicastRemoteObject(port, LoopbackNetworkInterface.clientLoopbackSocketFactory, LoopbackNetworkInterface.serverLoopbackSocketFactory)
|
UnicastRemoteObject(port, LoopbackNetworkInterface.clientLoopbackSocketFactory, LoopbackNetworkInterface.serverLoopbackSocketFactory)
|
||||||
{
|
{
|
||||||
override fun report(category: Int, severity: Int, message: String?, attachment: Serializable?): Void? {
|
override fun report(category: Int, severity: Int, message: String?, attachment: Serializable?) {
|
||||||
messageCollector.reportFromDaemon(outputsCollector, category, severity, message, attachment)
|
messageCollector.reportFromDaemon(outputsCollector, category, severity, message, attachment)
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-6
@@ -56,27 +56,24 @@ open class CompilerCallbackServicesFacadeServer(
|
|||||||
|
|
||||||
override fun incrementalCache_getModuleMappingData(target: TargetId): ByteArray? = incrementalCompilationComponents!!.getIncrementalCache(target).getModuleMappingData()
|
override fun incrementalCache_getModuleMappingData(target: TargetId): ByteArray? = incrementalCompilationComponents!!.getIncrementalCache(target).getModuleMappingData()
|
||||||
|
|
||||||
override fun incrementalCache_registerInline(target: TargetId, fromPath: String, jvmSignature: String, toPath: String): Void? {
|
override fun incrementalCache_registerInline(target: TargetId, fromPath: String, jvmSignature: String, toPath: String) {
|
||||||
incrementalCompilationComponents!!.getIncrementalCache(target).registerInline(fromPath, jvmSignature, toPath)
|
incrementalCompilationComponents!!.getIncrementalCache(target).registerInline(fromPath, jvmSignature, toPath)
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun incrementalCache_getClassFilePath(target: TargetId, internalClassName: String): String = incrementalCompilationComponents!!.getIncrementalCache(target).getClassFilePath(internalClassName)
|
override fun incrementalCache_getClassFilePath(target: TargetId, internalClassName: String): String = incrementalCompilationComponents!!.getIncrementalCache(target).getClassFilePath(internalClassName)
|
||||||
|
|
||||||
override fun incrementalCache_close(target: TargetId): Void? {
|
override fun incrementalCache_close(target: TargetId) {
|
||||||
incrementalCompilationComponents!!.getIncrementalCache(target).close()
|
incrementalCompilationComponents!!.getIncrementalCache(target).close()
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun lookupTracker_requiresPosition() = incrementalCompilationComponents!!.getLookupTracker().requiresPosition
|
override fun lookupTracker_requiresPosition() = incrementalCompilationComponents!!.getLookupTracker().requiresPosition
|
||||||
|
|
||||||
override fun lookupTracker_record(lookups: Collection<LookupInfo>): Void? {
|
override fun lookupTracker_record(lookups: Collection<LookupInfo>) {
|
||||||
val lookupTracker = incrementalCompilationComponents!!.getLookupTracker()
|
val lookupTracker = incrementalCompilationComponents!!.getLookupTracker()
|
||||||
|
|
||||||
for (it in lookups) {
|
for (it in lookups) {
|
||||||
lookupTracker.record(it.filePath, it.position, it.scopeFqName, it.scopeKind, it.name)
|
lookupTracker.record(it.filePath, it.position, it.scopeFqName, it.scopeKind, it.name)
|
||||||
}
|
}
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private val lookupTracker_isDoNothing: Boolean = incrementalCompilationComponents?.getLookupTracker() === LookupTracker.DO_NOTHING
|
private val lookupTracker_isDoNothing: Boolean = incrementalCompilationComponents?.getLookupTracker() === LookupTracker.DO_NOTHING
|
||||||
|
|||||||
+1
-1
@@ -444,7 +444,7 @@ class DaemonReportingTargets(val out: PrintStream? = null,
|
|||||||
val messageCollector: MessageCollector? = null,
|
val messageCollector: MessageCollector? = null,
|
||||||
val compilerServices: CompilerServicesFacadeBase? = null)
|
val compilerServices: CompilerServicesFacadeBase? = null)
|
||||||
|
|
||||||
internal fun DaemonReportingTargets.report(category: DaemonReportCategory, message: String, source: String? = null): Unit {
|
internal fun DaemonReportingTargets.report(category: DaemonReportCategory, message: String, source: String? = null) {
|
||||||
val sourceMessage: String by lazy { source?.let { "[$it] $message" } ?: message }
|
val sourceMessage: String by lazy { source?.let { "[$it] $message" } ?: message }
|
||||||
out?.println("${category.name}: $sourceMessage")
|
out?.println("${category.name}: $sourceMessage")
|
||||||
messages?.add(DaemonReportMessage(category, sourceMessage))
|
messages?.add(DaemonReportMessage(category, sourceMessage))
|
||||||
|
|||||||
+1
-2
@@ -27,9 +27,8 @@ class RemoteInputStreamServer(val `in`: InputStream, port: Int = SOCKET_ANY_FREE
|
|||||||
: RemoteInputStream,
|
: RemoteInputStream,
|
||||||
UnicastRemoteObject(port, LoopbackNetworkInterface.clientLoopbackSocketFactory, LoopbackNetworkInterface.serverLoopbackSocketFactory)
|
UnicastRemoteObject(port, LoopbackNetworkInterface.clientLoopbackSocketFactory, LoopbackNetworkInterface.serverLoopbackSocketFactory)
|
||||||
{
|
{
|
||||||
override fun close(): Void? {
|
override fun close() {
|
||||||
`in`.close()
|
`in`.close()
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun read(length: Int): ByteArray {
|
override fun read(length: Int): ByteArray {
|
||||||
|
|||||||
+3
-6
@@ -28,18 +28,15 @@ class RemoteOutputStreamServer(val out: OutputStream, port: Int = SOCKET_ANY_FRE
|
|||||||
: RemoteOutputStream,
|
: RemoteOutputStream,
|
||||||
UnicastRemoteObject(port, LoopbackNetworkInterface.clientLoopbackSocketFactory, LoopbackNetworkInterface.serverLoopbackSocketFactory)
|
UnicastRemoteObject(port, LoopbackNetworkInterface.clientLoopbackSocketFactory, LoopbackNetworkInterface.serverLoopbackSocketFactory)
|
||||||
{
|
{
|
||||||
override fun close(): Void? {
|
override fun close() {
|
||||||
out.close()
|
out.close()
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun write(data: ByteArray, offset: Int, length: Int): Void? {
|
override fun write(data: ByteArray, offset: Int, length: Int) {
|
||||||
out.write(data, offset, length)
|
out.write(data, offset, length)
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun write(dataByte: Int): Void? {
|
override fun write(dataByte: Int) {
|
||||||
out.write(dataByte)
|
out.write(dataByte)
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ import java.rmi.RemoteException
|
|||||||
|
|
||||||
interface CompilationResults : Remote {
|
interface CompilationResults : Remote {
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun add(compilationResultCategory: Int, value: Serializable): Void?
|
fun add(compilationResultCategory: Int, value: Serializable)
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class CompilationResultCategory(val code: Int) {
|
enum class CompilationResultCategory(val code: Int) {
|
||||||
|
|||||||
+3
-3
@@ -56,13 +56,13 @@ interface CompilerCallbackServicesFacade : Remote {
|
|||||||
fun incrementalCache_getModuleMappingData(target: TargetId): ByteArray?
|
fun incrementalCache_getModuleMappingData(target: TargetId): ByteArray?
|
||||||
|
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun incrementalCache_registerInline(target: TargetId, fromPath: String, jvmSignature: String, toPath: String): Void?
|
fun incrementalCache_registerInline(target: TargetId, fromPath: String, jvmSignature: String, toPath: String)
|
||||||
|
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun incrementalCache_getClassFilePath(target: TargetId, internalClassName: String): String
|
fun incrementalCache_getClassFilePath(target: TargetId, internalClassName: String): String
|
||||||
|
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun incrementalCache_close(target: TargetId): Void?
|
fun incrementalCache_close(target: TargetId)
|
||||||
|
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun incrementalCache_getMultifileFacadeParts(target: TargetId, internalName: String): Collection<String>?
|
fun incrementalCache_getMultifileFacadeParts(target: TargetId, internalName: String): Collection<String>?
|
||||||
@@ -73,7 +73,7 @@ interface CompilerCallbackServicesFacade : Remote {
|
|||||||
fun lookupTracker_requiresPosition(): Boolean
|
fun lookupTracker_requiresPosition(): Boolean
|
||||||
|
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun lookupTracker_record(lookups: Collection<LookupInfo>): Void?
|
fun lookupTracker_record(lookups: Collection<LookupInfo>)
|
||||||
|
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun lookupTracker_isDoNothing(): Boolean
|
fun lookupTracker_isDoNothing(): Boolean
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ interface CompilerServicesFacadeBase : Remote {
|
|||||||
* Reports different kind of diagnostic messages from compile daemon to compile daemon clients (jps, gradle, ...)
|
* Reports different kind of diagnostic messages from compile daemon to compile daemon clients (jps, gradle, ...)
|
||||||
*/
|
*/
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun report(category: Int, severity: Int, message: String?, attachment: Serializable?): Void?
|
fun report(category: Int, severity: Int, message: String?, attachment: Serializable?)
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class ReportCategory(val code: Int) {
|
enum class ReportCategory(val code: Int) {
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ import java.rmi.RemoteException
|
|||||||
interface RemoteInputStream : Remote {
|
interface RemoteInputStream : Remote {
|
||||||
|
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun close(): Void?
|
fun close()
|
||||||
|
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun read(length: Int): ByteArray
|
fun read(length: Int): ByteArray
|
||||||
|
|||||||
+2
-2
@@ -22,8 +22,8 @@ import java.rmi.RemoteException
|
|||||||
interface RemoteOperationsTracer : Remote {
|
interface RemoteOperationsTracer : Remote {
|
||||||
|
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun before(id: String): Void?
|
fun before(id: String)
|
||||||
|
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun after(id: String): Void?
|
fun after(id: String)
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -22,11 +22,11 @@ import java.rmi.RemoteException
|
|||||||
interface RemoteOutputStream : Remote {
|
interface RemoteOutputStream : Remote {
|
||||||
|
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun close(): Void?
|
fun close()
|
||||||
|
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun write(data: ByteArray, offset: Int, length: Int): Void?
|
fun write(data: ByteArray, offset: Int, length: Int)
|
||||||
|
|
||||||
@Throws(RemoteException::class)
|
@Throws(RemoteException::class)
|
||||||
fun write(dataByte: Int): Void?
|
fun write(dataByte: Int)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,10 +32,9 @@ internal class JpsCompilerServicesFacadeImpl(
|
|||||||
port),
|
port),
|
||||||
JpsCompilerServicesFacade {
|
JpsCompilerServicesFacade {
|
||||||
|
|
||||||
override fun report(category: Int, severity: Int, message: String?, attachment: Serializable?): Void? {
|
override fun report(category: Int, severity: Int, message: String?, attachment: Serializable?) {
|
||||||
env.messageCollector.reportFromDaemon(
|
env.messageCollector.reportFromDaemon(
|
||||||
{ outFile, srcFiles -> env.outputItemsCollector.add(srcFiles, outFile) },
|
{ outFile, srcFiles -> env.outputItemsCollector.add(srcFiles, outFile) },
|
||||||
category, severity, message, attachment)
|
category, severity, message, attachment)
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user