Skip to content

Instantly share code, notes, and snippets.

@DenWav
Created August 17, 2016 06:45
Show Gist options
  • Select an option

  • Save DenWav/fad4ec1cd378863d13d5ed37888451bf to your computer and use it in GitHub Desktop.

Select an option

Save DenWav/fad4ec1cd378863d13d5ed37888451bf to your computer and use it in GitHub Desktop.
/home/demonwav/IdeaProjects/StatCraft/src/main/kotlin/com/demonwav/statcraft/StatCraft.kt: (490, 48) org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call 'use' into
local final fun <anonymous>(player: (Player..Player?)): kotlin.Unit defined in com.demonwav.statcraft.StatCraft.finishPlaytimeAndBed[AnonymousFunctionDescriptor@4ed7c1ce]
{ player ->
val uuid = player.uniqueId
val id = databaseManager.getPlayerId(uuid)
try {
databaseManager.connection.use {
QSeen.seen.runQuery(
{ s, clause -> clause.columns(s.id, s.lastLeaveTime).values(id, currentTime).execute() },
{ s, clause -> clause.where(s.id.eq(id)).set(s.lastJoinTime, currentTime).execute() },
this, plugin
)
}
} catch (e: SQLException) {
e.printStackTrace()
}
val currentPlayTime = Math.round(player.getStatistic(Statistic.PLAY_ONE_TICK) * 0.052).toInt()
try {
databaseManager.connection.use {
QPlayTime.playTime.runQuery(
{ p, clause -> clause.columns(p.id, p.amount).values(id, currentPlayTime).execute() },
{ p, clause -> clause.where(p.id.eq(id)).set(p.amount, currentPlayTime).execute() },
this, plugin
)
}
} catch (e: SQLException) {
e.printStackTrace()
}
if (player.isSleeping) {
try {
databaseManager.connection.use {
QSleep.sleep.runQuery(
{ s, query ->
val map = HashMap<String, Int>()
var enterBed = query.from(s).where(s.id.eq(id)).uniqueResult(s.enterBed)
enterBed = if (enterBed == null) 0 else enterBed
if (enterBed !== 0) {
map["timeSlept"] = currentTime - enterBed
} else {
map["timeSlept"] = 0
}
map
}, { s, clause, map ->
if (map["timeSlept"] == 0) {
clause.columns(s.id, s.leaveBed).values(id, currentTime).execute()
} else {
clause.columns(s.id, s.leaveBed, s.timeSlept).values(id, currentTime, map["timeSlept"]).execute()
}
}, { s, clause, map ->
if (map["timeSlept"] == 0) {
clause.where(s.id.eq(id)).set(s.leaveBed, currentTime).execute()
} else {
clause.where(s.id.eq(id)).set(s.leaveBed, currentPlayTime).set(s.timeSlept, map["timeSlept"]).execute()
}
},
this, plugin
)
}
} catch (e: SQLException) {
e.printStackTrace()
}
}
}
Cause: Lambda inlining com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3: couldn't inline method call
Cause: invoke (Ljava/sql/Connection;Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1;Ljava/lang/Integer;I)V:
TRYCATCHBLOCK L0 L1 L2 com/mysema/query/QueryException
L3
ALOAD 1
LDC "$receiver"
INVOKESTATIC kotlin/jvm/internal/Intrinsics.checkParameterIsNotNull (Ljava/lang/Object;Ljava/lang/String;)V
L4
LINENUMBER 491 L4
GETSTATIC com/demonwav/statcraft/querydsl/QSleep.sleep : Lcom/demonwav/statcraft/querydsl/QSleep;
CHECKCAST com/mysema/query/sql/RelationalPath
ASTORE 6
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$this$0 : Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1;
GETFIELD com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1.$plugin : Lcom/demonwav/statcraft/StatCraft;
ASTORE 7
INVOKESTATIC kotlin/jvm/internal/InlineMarker.beforeInlineCall ()V
NOP
L5
LINENUMBER 748 L5
ALOAD 6
ALOAD 7
INVOKEVIRTUAL com/demonwav/statcraft/StatCraft.getDatabaseManager ()Lcom/demonwav/statcraft/sql/DatabaseManager;
ALOAD 1
INVOKEVIRTUAL com/demonwav/statcraft/sql/DatabaseManager.getNewQuery (Ljava/sql/Connection;)Lcom/mysema/query/sql/SQLQuery;
DUP
IFNULL L6
GOTO L7
L6
POP
POP
POP
GOTO L8
L7
CHECKCAST com/mysema/query/sql/SQLQuery
ASTORE 8
CHECKCAST com/demonwav/statcraft/querydsl/QSleep
ASTORE 9
INVOKESTATIC kotlin/jvm/internal/InlineMarker.beforeInlineCall ()V
L9
LINENUMBER 493 L9
NEW java/util/HashMap
DUP
INVOKESPECIAL java/util/HashMap.<init> ()V
ASTORE 10
L10
LINENUMBER 495 L10
ALOAD 8
ALOAD 9
CHECKCAST com/mysema/query/types/Expression
INVOKEVIRTUAL com/mysema/query/sql/SQLQuery.from (Lcom/mysema/query/types/Expression;)Lcom/mysema/query/sql/ProjectableSQLQuery;
CHECKCAST com/mysema/query/sql/SQLQuery
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.id : Lcom/mysema/query/types/path/NumberPath;
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$$id : Ljava/lang/Integer;
INVOKEVIRTUAL com/mysema/query/types/path/NumberPath.eq (Ljava/lang/Object;)Lcom/mysema/query/types/expr/BooleanExpression;
CHECKCAST com/mysema/query/types/Predicate
INVOKEVIRTUAL com/mysema/query/sql/SQLQuery.where (Lcom/mysema/query/types/Predicate;)Lcom/mysema/query/support/QueryBase;
CHECKCAST com/mysema/query/sql/SQLQuery
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.enterBed : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Expression
INVOKEVIRTUAL com/mysema/query/sql/SQLQuery.uniqueResult (Lcom/mysema/query/types/Expression;)Ljava/lang/Object;
CHECKCAST java/lang/Integer
ASTORE 11
L11
LINENUMBER 496 L11
ALOAD 11
IFNONNULL L12
ICONST_0
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
GOTO L13
L12
ALOAD 11
L13
ASTORE 11
L14
LINENUMBER 497 L14
ALOAD 11
ICONST_0
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
IF_ACMPEQ L15
L16
LINENUMBER 498 L16
ALOAD 10
CHECKCAST java/util/Map
ASTORE 12
LDC "timeSlept"
ASTORE 13
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$this$0 : Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1;
GETFIELD com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1.$currentTime : I
ALOAD 11
INVOKEVIRTUAL java/lang/Number.intValue ()I
ISUB
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
ASTORE 14
NOP
L17
ALOAD 12
ALOAD 13
ALOAD 14
INVOKEINTERFACE java/util/Map.put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
POP
L18
GOTO L19
L19
GOTO L20
L15
LINENUMBER 500 L15
ALOAD 10
CHECKCAST java/util/Map
ASTORE 12
LDC "timeSlept"
ASTORE 13
ICONST_0
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
ASTORE 14
NOP
L21
ALOAD 12
ALOAD 13
ALOAD 14
INVOKEINTERFACE java/util/Map.put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
POP
L22
GOTO L23
L23
LINENUMBER 501 L23
L20
LINENUMBER 503 L20
ALOAD 10
L24
GOTO L25
L25
INVOKESTATIC kotlin/jvm/internal/InlineMarker.afterInlineCall ()V
ASTORE 16
L26
LINENUMBER 750 L26
L27
INVOKESTATIC kotlin/jvm/internal/$PseudoInsn.SAVE_STACK_BEFORE_TRY ()V
L0
NOP
INVOKESTATIC kotlin/jvm/internal/$PseudoInsn.RESTORE_STACK_IN_TRY_CATCH ()V
L28
LINENUMBER 751 L28
ALOAD 7
INVOKEVIRTUAL com/demonwav/statcraft/StatCraft.getDatabaseManager ()Lcom/demonwav/statcraft/sql/DatabaseManager;
ALOAD 1
ALOAD 6
INVOKEVIRTUAL com/demonwav/statcraft/sql/DatabaseManager.getInsertClause (Ljava/sql/Connection;Lcom/mysema/query/sql/RelationalPath;)Lcom/mysema/query/sql/dml/SQLInsertClause;
DUP
IFNULL L29
GOTO L30
L29
POP
GOTO L8
L30
ASTORE 17
L31
LINENUMBER 753 L31
ALOAD 6
ALOAD 17
ALOAD 16
CHECKCAST java/util/HashMap
ASTORE 10
CHECKCAST com/mysema/query/sql/dml/SQLInsertClause
ASTORE 8
CHECKCAST com/demonwav/statcraft/querydsl/QSleep
ASTORE 9
INVOKESTATIC kotlin/jvm/internal/InlineMarker.beforeInlineCall ()V
L32
LINENUMBER 505 L32
ALOAD 10
LDC "timeSlept"
INVOKEVIRTUAL java/util/HashMap.get (Ljava/lang/Object;)Ljava/lang/Object;
CHECKCAST java/lang/Integer
ICONST_0
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
INVOKESTATIC kotlin/jvm/internal/Intrinsics.areEqual (Ljava/lang/Object;Ljava/lang/Object;)Z
IFEQ L33
L34
LINENUMBER 506 L34
ALOAD 8
ICONST_2
ANEWARRAY com/mysema/query/types/Path
DUP
ICONST_0
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.id : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
AASTORE
DUP
ICONST_1
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.leaveBed : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
AASTORE
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLInsertClause.columns ([Lcom/mysema/query/types/Path;)Lcom/mysema/query/sql/dml/SQLInsertClause;
ICONST_2
ANEWARRAY java/lang/Object
DUP
ICONST_0
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$$id : Ljava/lang/Integer;
AASTORE
DUP
ICONST_1
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$this$0 : Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1;
GETFIELD com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1.$currentTime : I
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
AASTORE
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLInsertClause.values ([Ljava/lang/Object;)Lcom/mysema/query/sql/dml/SQLInsertClause;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLInsertClause.execute ()J
POP2
L35
GOTO L36
L33
LINENUMBER 508 L33
ALOAD 8
ICONST_3
ANEWARRAY com/mysema/query/types/Path
DUP
ICONST_0
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.id : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
AASTORE
DUP
ICONST_1
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.leaveBed : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
AASTORE
DUP
ICONST_2
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.timeSlept : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
AASTORE
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLInsertClause.columns ([Lcom/mysema/query/types/Path;)Lcom/mysema/query/sql/dml/SQLInsertClause;
ICONST_3
ANEWARRAY java/lang/Object
DUP
ICONST_0
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$$id : Ljava/lang/Integer;
AASTORE
DUP
ICONST_1
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$this$0 : Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1;
GETFIELD com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1.$currentTime : I
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
AASTORE
DUP
ICONST_2
ALOAD 10
LDC "timeSlept"
INVOKEVIRTUAL java/util/HashMap.get (Ljava/lang/Object;)Ljava/lang/Object;
AASTORE
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLInsertClause.values ([Ljava/lang/Object;)Lcom/mysema/query/sql/dml/SQLInsertClause;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLInsertClause.execute ()J
POP2
L37
LINENUMBER 509 L37
L36
LINENUMBER 510 L36
GOTO L38
L38
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
INVOKESTATIC kotlin/jvm/internal/InlineMarker.afterInlineCall ()V
POP
L1
GOTO L39
L2
LINENUMBER 754 L2
ASTORE 17
INVOKESTATIC kotlin/jvm/internal/$PseudoInsn.RESTORE_STACK_IN_TRY_CATCH ()V
L40
LINENUMBER 755 L40
ALOAD 7
INVOKEVIRTUAL com/demonwav/statcraft/StatCraft.getDatabaseManager ()Lcom/demonwav/statcraft/sql/DatabaseManager;
ALOAD 1
ALOAD 6
INVOKEVIRTUAL com/demonwav/statcraft/sql/DatabaseManager.getUpdateClause (Ljava/sql/Connection;Lcom/mysema/query/sql/RelationalPath;)Lcom/mysema/query/sql/dml/SQLUpdateClause;
DUP
IFNULL L41
GOTO L42
L41
POP
GOTO L8
L42
ASTORE 18
L43
LINENUMBER 757 L43
ALOAD 6
ALOAD 18
ALOAD 16
CHECKCAST java/util/HashMap
ASTORE 10
CHECKCAST com/mysema/query/sql/dml/SQLUpdateClause
ASTORE 8
CHECKCAST com/demonwav/statcraft/querydsl/QSleep
ASTORE 9
INVOKESTATIC kotlin/jvm/internal/InlineMarker.beforeInlineCall ()V
L44
LINENUMBER 511 L44
ALOAD 10
LDC "timeSlept"
INVOKEVIRTUAL java/util/HashMap.get (Ljava/lang/Object;)Ljava/lang/Object;
CHECKCAST java/lang/Integer
ICONST_0
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
INVOKESTATIC kotlin/jvm/internal/Intrinsics.areEqual (Ljava/lang/Object;Ljava/lang/Object;)Z
IFEQ L45
L46
LINENUMBER 512 L46
ALOAD 8
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.id : Lcom/mysema/query/types/path/NumberPath;
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$$id : Ljava/lang/Integer;
INVOKEVIRTUAL com/mysema/query/types/path/NumberPath.eq (Ljava/lang/Object;)Lcom/mysema/query/types/expr/BooleanExpression;
CHECKCAST com/mysema/query/types/Predicate
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.where (Lcom/mysema/query/types/Predicate;)Lcom/mysema/query/sql/dml/SQLUpdateClause;
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.leaveBed : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$this$0 : Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1;
GETFIELD com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1.$currentTime : I
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.set (Lcom/mysema/query/types/Path;Ljava/lang/Object;)Lcom/mysema/query/sql/dml/SQLUpdateClause;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.execute ()J
POP2
L47
GOTO L48
L45
LINENUMBER 514 L45
ALOAD 8
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.id : Lcom/mysema/query/types/path/NumberPath;
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$$id : Ljava/lang/Integer;
INVOKEVIRTUAL com/mysema/query/types/path/NumberPath.eq (Ljava/lang/Object;)Lcom/mysema/query/types/expr/BooleanExpression;
CHECKCAST com/mysema/query/types/Predicate
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.where (Lcom/mysema/query/types/Predicate;)Lcom/mysema/query/sql/dml/SQLUpdateClause;
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.leaveBed : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$$currentPlayTime : I
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.set (Lcom/mysema/query/types/Path;Ljava/lang/Object;)Lcom/mysema/query/sql/dml/SQLUpdateClause;
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.timeSlept : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
ALOAD 10
LDC "timeSlept"
INVOKEVIRTUAL java/util/HashMap.get (Ljava/lang/Object;)Ljava/lang/Object;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.set (Lcom/mysema/query/types/Path;Ljava/lang/Object;)Lcom/mysema/query/sql/dml/SQLUpdateClause;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.execute ()J
POP2
L49
LINENUMBER 515 L49
L48
LINENUMBER 516 L48
GOTO L50
L50
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
INVOKESTATIC kotlin/jvm/internal/InlineMarker.afterInlineCall ()V
POP
L51
LINENUMBER 758 L51
L39
LINENUMBER 759 L39
GOTO L8
L8
INVOKESTATIC kotlin/jvm/internal/InlineMarker.afterInlineCall ()V
L52
LINENUMBER 518 L52
L53
LINENUMBER 519 L53
RETURN
L54
LOCALVARIABLE enterBed Ljava/lang/Integer; L11 L24 11
LOCALVARIABLE map Ljava/util/HashMap; L10 L24 10
LOCALVARIABLE s Lcom/demonwav/statcraft/querydsl/QSleep; L9 L25 9
LOCALVARIABLE query Lcom/mysema/query/sql/SQLQuery; L9 L25 8
LOCALVARIABLE $i$a$1$runQuery I L9 L25 15
LOCALVARIABLE s Lcom/demonwav/statcraft/querydsl/QSleep; L32 L38 9
LOCALVARIABLE clause Lcom/mysema/query/sql/dml/SQLInsertClause; L32 L38 8
LOCALVARIABLE map Ljava/util/HashMap; L32 L38 10
LOCALVARIABLE $i$a$2$runQuery I L32 L38 11
LOCALVARIABLE s Lcom/demonwav/statcraft/querydsl/QSleep; L44 L50 9
LOCALVARIABLE clause Lcom/mysema/query/sql/dml/SQLUpdateClause; L44 L50 8
LOCALVARIABLE map Ljava/util/HashMap; L44 L50 10
LOCALVARIABLE $i$a$3$runQuery I L44 L50 11
LOCALVARIABLE clause$iv Lcom/mysema/query/sql/dml/SQLInsertClause; L31 L1 17
LOCALVARIABLE clause$iv Lcom/mysema/query/sql/dml/SQLUpdateClause; L43 L51 18
LOCALVARIABLE e$iv Lcom/mysema/query/QueryException; L2 L51 17
LOCALVARIABLE r$iv Ljava/lang/Object; L26 L8 16
LOCALVARIABLE $receiver$iv Lcom/mysema/query/sql/RelationalPath; L5 L8 6
LOCALVARIABLE plugin$iv Lcom/demonwav/statcraft/StatCraft; L5 L8 7
LOCALVARIABLE $i$f$runQuery I L5 L8 19
LOCALVARIABLE this Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3; L3 L54 0
LOCALVARIABLE $receiver Ljava/sql/Connection; L3 L54 1
LOCALVARIABLE $i$a$3$use I L3 L54 5
MAXSTACK = 6
MAXLOCALS = 20
File being compiled and position: (490,48) in /home/demonwav/IdeaProjects/StatCraft/src/main/kotlin/com/demonwav/statcraft/StatCraft.kt
PsiElement: use {
QSleep.sleep.runQuery(
{ s, query ->
val map = HashMap<String, Int>()
var enterBed = query.from(s).where(s.id.eq(id)).uniqueResult(s.enterBed)
enterBed = if (enterBed == null) 0 else enterBed
if (enterBed !== 0) {
map["timeSlept"] = currentTime - enterBed
} else {
map["timeSlept"] = 0
}
map
}, { s, clause, map ->
if (map["timeSlept"] == 0) {
clause.columns(s.id, s.leaveBed).values(id, currentTime).execute()
} else {
clause.columns(s.id, s.leaveBed, s.timeSlept).values(id, currentTime, map["timeSlept"]).execute()
}
}, { s, clause, map ->
if (map["timeSlept"] == 0) {
clause.where(s.id.eq(id)).set(s.leaveBed, currentTime).execute()
} else {
clause.where(s.id.eq(id)).set(s.leaveBed, currentPlayTime).set(s.timeSlept, map["timeSlept"]).execute()
}
},
this, plugin
)
}
The root cause was thrown at: MethodInliner.java:727
at org.jetbrains.kotlin.codegen.inline.InlineCodegen.throwCompilationException(InlineCodegen.java:172)
at org.jetbrains.kotlin.codegen.inline.InlineCodegen.genCallInner(InlineCodegen.java:155)
at org.jetbrains.kotlin.codegen.CallGenerator.genCall(CallGenerator.kt:100)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.invokeMethodWithArguments(ExpressionCodegen.java:2585)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.invokeMethodWithArguments(ExpressionCodegen.java:2543)
at org.jetbrains.kotlin.codegen.Callable$invokeMethodWithArguments$1.invoke(Callable.kt:44)
at org.jetbrains.kotlin.codegen.Callable$invokeMethodWithArguments$1.invoke(Callable.kt:23)
at org.jetbrains.kotlin.codegen.OperationStackValue.putSelector(StackValue.kt:65)
at org.jetbrains.kotlin.codegen.StackValueWithLeaveTask.putSelector(StackValue.kt:57)
at org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:109)
at org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:102)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:324)
at org.jetbrains.kotlin.codegen.ExpressionCodegen$20.invoke(ExpressionCodegen.java:3754)
at org.jetbrains.kotlin.codegen.ExpressionCodegen$20.invoke(ExpressionCodegen.java:3738)
at org.jetbrains.kotlin.codegen.OperationStackValue.putSelector(StackValue.kt:65)
at org.jetbrains.kotlin.codegen.StackValueWithLeaveTask.putSelector(StackValue.kt:57)
at org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:109)
at org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:102)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:324)
at org.jetbrains.kotlin.codegen.ExpressionCodegen$3.invoke(ExpressionCodegen.java:1313)
at org.jetbrains.kotlin.codegen.ExpressionCodegen$3.invoke(ExpressionCodegen.java:1306)
at org.jetbrains.kotlin.codegen.OperationStackValue.putSelector(StackValue.kt:65)
at org.jetbrains.kotlin.codegen.StackValueWithLeaveTask.putSelector(StackValue.kt:57)
at org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:109)
at org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:102)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:324)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.returnExpression(ExpressionCodegen.java:2026)
at org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$FunctionDefault.doGenerateBody(FunctionGenerationStrategy.java:50)
at org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$CodegenBased.generateBody(FunctionGenerationStrategy.java:72)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethodBody(FunctionCodegen.java:381)
at org.jetbrains.kotlin.codegen.inline.InlineCodegen.generateMethodBody(InlineCodegen.java:512)
at org.jetbrains.kotlin.codegen.inline.InlineCodegen.generateLambdaBody(InlineCodegen.java:477)
at org.jetbrains.kotlin.codegen.inline.InlineCodegen.generateClosuresBodies(InlineCodegen.java:456)
at org.jetbrains.kotlin.codegen.inline.InlineCodegen.inlineCall(InlineCodegen.java:365)
at org.jetbrains.kotlin.codegen.inline.InlineCodegen.genCallInner(InlineCodegen.java:149)
at org.jetbrains.kotlin.codegen.CallGenerator.genCall(CallGenerator.kt:100)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.invokeMethodWithArguments(ExpressionCodegen.java:2585)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.invokeMethodWithArguments(ExpressionCodegen.java:2543)
at org.jetbrains.kotlin.codegen.Callable$invokeMethodWithArguments$1.invoke(Callable.kt:44)
at org.jetbrains.kotlin.codegen.Callable$invokeMethodWithArguments$1.invoke(Callable.kt:23)
at org.jetbrains.kotlin.codegen.OperationStackValue.putSelector(StackValue.kt:65)
at org.jetbrains.kotlin.codegen.StackValueWithLeaveTask.putSelector(StackValue.kt:57)
at org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:109)
at org.jetbrains.kotlin.codegen.StackValue.put(StackValue.java:102)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:324)
at org.jetbrains.kotlin.codegen.ExpressionCodegen.returnExpression(ExpressionCodegen.java:2026)
at org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$FunctionDefault.doGenerateBody(FunctionGenerationStrategy.java:50)
at org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$CodegenBased.generateBody(FunctionGenerationStrategy.java:72)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethodBody(FunctionCodegen.java:381)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:216)
at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:146)
at org.jetbrains.kotlin.codegen.FunctionCodegen.gen(FunctionCodegen.java:121)
at org.jetbrains.kotlin.codegen.MemberCodegen.genFunctionOrProperty(MemberCodegen.java:182)
at org.jetbrains.kotlin.codegen.ClassBodyCodegen.generateDeclaration(ClassBodyCodegen.java:124)
at org.jetbrains.kotlin.codegen.ClassBodyCodegen.generateBody(ClassBodyCodegen.java:74)
at org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:119)
at org.jetbrains.kotlin.codegen.MemberCodegen.genClassOrObject(MemberCodegen.java:233)
at org.jetbrains.kotlin.codegen.PackageCodegen.generateClassOrObject(PackageCodegen.java:145)
at org.jetbrains.kotlin.codegen.PackageCodegen.generateFile(PackageCodegen.java:98)
at org.jetbrains.kotlin.codegen.PackageCodegen.generate(PackageCodegen.java:61)
at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.generatePackage(KotlinCodegenFacade.java:99)
at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.doGenerateFiles(KotlinCodegenFacade.java:77)
at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.compileCorrectFiles(KotlinCodegenFacade.java:44)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.generate(KotlinToJVMBytecodeCompiler.kt:415)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyzeAndGenerate(KotlinToJVMBytecodeCompiler.kt:317)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileBunchOfSources(KotlinToJVMBytecodeCompiler.kt:227)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:201)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:51)
at org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:199)
at org.jetbrains.kotlin.maven.KotlinCompileMojoBase.execute(KotlinCompileMojoBase.java:138)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: org.jetbrains.kotlin.codegen.inline.InlineException: Lambda inlining com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3: couldn't inline method call
Cause: invoke (Ljava/sql/Connection;Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1;Ljava/lang/Integer;I)V:
TRYCATCHBLOCK L0 L1 L2 com/mysema/query/QueryException
L3
ALOAD 1
LDC "$receiver"
INVOKESTATIC kotlin/jvm/internal/Intrinsics.checkParameterIsNotNull (Ljava/lang/Object;Ljava/lang/String;)V
L4
LINENUMBER 491 L4
GETSTATIC com/demonwav/statcraft/querydsl/QSleep.sleep : Lcom/demonwav/statcraft/querydsl/QSleep;
CHECKCAST com/mysema/query/sql/RelationalPath
ASTORE 6
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$this$0 : Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1;
GETFIELD com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1.$plugin : Lcom/demonwav/statcraft/StatCraft;
ASTORE 7
INVOKESTATIC kotlin/jvm/internal/InlineMarker.beforeInlineCall ()V
NOP
L5
LINENUMBER 748 L5
ALOAD 6
ALOAD 7
INVOKEVIRTUAL com/demonwav/statcraft/StatCraft.getDatabaseManager ()Lcom/demonwav/statcraft/sql/DatabaseManager;
ALOAD 1
INVOKEVIRTUAL com/demonwav/statcraft/sql/DatabaseManager.getNewQuery (Ljava/sql/Connection;)Lcom/mysema/query/sql/SQLQuery;
DUP
IFNULL L6
GOTO L7
L6
POP
POP
POP
GOTO L8
L7
CHECKCAST com/mysema/query/sql/SQLQuery
ASTORE 8
CHECKCAST com/demonwav/statcraft/querydsl/QSleep
ASTORE 9
INVOKESTATIC kotlin/jvm/internal/InlineMarker.beforeInlineCall ()V
L9
LINENUMBER 493 L9
NEW java/util/HashMap
DUP
INVOKESPECIAL java/util/HashMap.<init> ()V
ASTORE 10
L10
LINENUMBER 495 L10
ALOAD 8
ALOAD 9
CHECKCAST com/mysema/query/types/Expression
INVOKEVIRTUAL com/mysema/query/sql/SQLQuery.from (Lcom/mysema/query/types/Expression;)Lcom/mysema/query/sql/ProjectableSQLQuery;
CHECKCAST com/mysema/query/sql/SQLQuery
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.id : Lcom/mysema/query/types/path/NumberPath;
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$$id : Ljava/lang/Integer;
INVOKEVIRTUAL com/mysema/query/types/path/NumberPath.eq (Ljava/lang/Object;)Lcom/mysema/query/types/expr/BooleanExpression;
CHECKCAST com/mysema/query/types/Predicate
INVOKEVIRTUAL com/mysema/query/sql/SQLQuery.where (Lcom/mysema/query/types/Predicate;)Lcom/mysema/query/support/QueryBase;
CHECKCAST com/mysema/query/sql/SQLQuery
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.enterBed : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Expression
INVOKEVIRTUAL com/mysema/query/sql/SQLQuery.uniqueResult (Lcom/mysema/query/types/Expression;)Ljava/lang/Object;
CHECKCAST java/lang/Integer
ASTORE 11
L11
LINENUMBER 496 L11
ALOAD 11
IFNONNULL L12
ICONST_0
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
GOTO L13
L12
ALOAD 11
L13
ASTORE 11
L14
LINENUMBER 497 L14
ALOAD 11
ICONST_0
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
IF_ACMPEQ L15
L16
LINENUMBER 498 L16
ALOAD 10
CHECKCAST java/util/Map
ASTORE 12
LDC "timeSlept"
ASTORE 13
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$this$0 : Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1;
GETFIELD com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1.$currentTime : I
ALOAD 11
INVOKEVIRTUAL java/lang/Number.intValue ()I
ISUB
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
ASTORE 14
NOP
L17
ALOAD 12
ALOAD 13
ALOAD 14
INVOKEINTERFACE java/util/Map.put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
POP
L18
GOTO L19
L19
GOTO L20
L15
LINENUMBER 500 L15
ALOAD 10
CHECKCAST java/util/Map
ASTORE 12
LDC "timeSlept"
ASTORE 13
ICONST_0
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
ASTORE 14
NOP
L21
ALOAD 12
ALOAD 13
ALOAD 14
INVOKEINTERFACE java/util/Map.put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
POP
L22
GOTO L23
L23
LINENUMBER 501 L23
L20
LINENUMBER 503 L20
ALOAD 10
L24
GOTO L25
L25
INVOKESTATIC kotlin/jvm/internal/InlineMarker.afterInlineCall ()V
ASTORE 16
L26
LINENUMBER 750 L26
L27
INVOKESTATIC kotlin/jvm/internal/$PseudoInsn.SAVE_STACK_BEFORE_TRY ()V
L0
NOP
INVOKESTATIC kotlin/jvm/internal/$PseudoInsn.RESTORE_STACK_IN_TRY_CATCH ()V
L28
LINENUMBER 751 L28
ALOAD 7
INVOKEVIRTUAL com/demonwav/statcraft/StatCraft.getDatabaseManager ()Lcom/demonwav/statcraft/sql/DatabaseManager;
ALOAD 1
ALOAD 6
INVOKEVIRTUAL com/demonwav/statcraft/sql/DatabaseManager.getInsertClause (Ljava/sql/Connection;Lcom/mysema/query/sql/RelationalPath;)Lcom/mysema/query/sql/dml/SQLInsertClause;
DUP
IFNULL L29
GOTO L30
L29
POP
GOTO L8
L30
ASTORE 17
L31
LINENUMBER 753 L31
ALOAD 6
ALOAD 17
ALOAD 16
CHECKCAST java/util/HashMap
ASTORE 10
CHECKCAST com/mysema/query/sql/dml/SQLInsertClause
ASTORE 8
CHECKCAST com/demonwav/statcraft/querydsl/QSleep
ASTORE 9
INVOKESTATIC kotlin/jvm/internal/InlineMarker.beforeInlineCall ()V
L32
LINENUMBER 505 L32
ALOAD 10
LDC "timeSlept"
INVOKEVIRTUAL java/util/HashMap.get (Ljava/lang/Object;)Ljava/lang/Object;
CHECKCAST java/lang/Integer
ICONST_0
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
INVOKESTATIC kotlin/jvm/internal/Intrinsics.areEqual (Ljava/lang/Object;Ljava/lang/Object;)Z
IFEQ L33
L34
LINENUMBER 506 L34
ALOAD 8
ICONST_2
ANEWARRAY com/mysema/query/types/Path
DUP
ICONST_0
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.id : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
AASTORE
DUP
ICONST_1
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.leaveBed : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
AASTORE
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLInsertClause.columns ([Lcom/mysema/query/types/Path;)Lcom/mysema/query/sql/dml/SQLInsertClause;
ICONST_2
ANEWARRAY java/lang/Object
DUP
ICONST_0
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$$id : Ljava/lang/Integer;
AASTORE
DUP
ICONST_1
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$this$0 : Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1;
GETFIELD com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1.$currentTime : I
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
AASTORE
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLInsertClause.values ([Ljava/lang/Object;)Lcom/mysema/query/sql/dml/SQLInsertClause;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLInsertClause.execute ()J
POP2
L35
GOTO L36
L33
LINENUMBER 508 L33
ALOAD 8
ICONST_3
ANEWARRAY com/mysema/query/types/Path
DUP
ICONST_0
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.id : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
AASTORE
DUP
ICONST_1
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.leaveBed : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
AASTORE
DUP
ICONST_2
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.timeSlept : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
AASTORE
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLInsertClause.columns ([Lcom/mysema/query/types/Path;)Lcom/mysema/query/sql/dml/SQLInsertClause;
ICONST_3
ANEWARRAY java/lang/Object
DUP
ICONST_0
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$$id : Ljava/lang/Integer;
AASTORE
DUP
ICONST_1
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$this$0 : Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1;
GETFIELD com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1.$currentTime : I
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
AASTORE
DUP
ICONST_2
ALOAD 10
LDC "timeSlept"
INVOKEVIRTUAL java/util/HashMap.get (Ljava/lang/Object;)Ljava/lang/Object;
AASTORE
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLInsertClause.values ([Ljava/lang/Object;)Lcom/mysema/query/sql/dml/SQLInsertClause;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLInsertClause.execute ()J
POP2
L37
LINENUMBER 509 L37
L36
LINENUMBER 510 L36
GOTO L38
L38
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
INVOKESTATIC kotlin/jvm/internal/InlineMarker.afterInlineCall ()V
POP
L1
GOTO L39
L2
LINENUMBER 754 L2
ASTORE 17
INVOKESTATIC kotlin/jvm/internal/$PseudoInsn.RESTORE_STACK_IN_TRY_CATCH ()V
L40
LINENUMBER 755 L40
ALOAD 7
INVOKEVIRTUAL com/demonwav/statcraft/StatCraft.getDatabaseManager ()Lcom/demonwav/statcraft/sql/DatabaseManager;
ALOAD 1
ALOAD 6
INVOKEVIRTUAL com/demonwav/statcraft/sql/DatabaseManager.getUpdateClause (Ljava/sql/Connection;Lcom/mysema/query/sql/RelationalPath;)Lcom/mysema/query/sql/dml/SQLUpdateClause;
DUP
IFNULL L41
GOTO L42
L41
POP
GOTO L8
L42
ASTORE 18
L43
LINENUMBER 757 L43
ALOAD 6
ALOAD 18
ALOAD 16
CHECKCAST java/util/HashMap
ASTORE 10
CHECKCAST com/mysema/query/sql/dml/SQLUpdateClause
ASTORE 8
CHECKCAST com/demonwav/statcraft/querydsl/QSleep
ASTORE 9
INVOKESTATIC kotlin/jvm/internal/InlineMarker.beforeInlineCall ()V
L44
LINENUMBER 511 L44
ALOAD 10
LDC "timeSlept"
INVOKEVIRTUAL java/util/HashMap.get (Ljava/lang/Object;)Ljava/lang/Object;
CHECKCAST java/lang/Integer
ICONST_0
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
INVOKESTATIC kotlin/jvm/internal/Intrinsics.areEqual (Ljava/lang/Object;Ljava/lang/Object;)Z
IFEQ L45
L46
LINENUMBER 512 L46
ALOAD 8
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.id : Lcom/mysema/query/types/path/NumberPath;
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$$id : Ljava/lang/Integer;
INVOKEVIRTUAL com/mysema/query/types/path/NumberPath.eq (Ljava/lang/Object;)Lcom/mysema/query/types/expr/BooleanExpression;
CHECKCAST com/mysema/query/types/Predicate
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.where (Lcom/mysema/query/types/Predicate;)Lcom/mysema/query/sql/dml/SQLUpdateClause;
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.leaveBed : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$this$0 : Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1;
GETFIELD com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1.$currentTime : I
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.set (Lcom/mysema/query/types/Path;Ljava/lang/Object;)Lcom/mysema/query/sql/dml/SQLUpdateClause;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.execute ()J
POP2
L47
GOTO L48
L45
LINENUMBER 514 L45
ALOAD 8
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.id : Lcom/mysema/query/types/path/NumberPath;
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$$id : Ljava/lang/Integer;
INVOKEVIRTUAL com/mysema/query/types/path/NumberPath.eq (Ljava/lang/Object;)Lcom/mysema/query/types/expr/BooleanExpression;
CHECKCAST com/mysema/query/types/Predicate
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.where (Lcom/mysema/query/types/Predicate;)Lcom/mysema/query/sql/dml/SQLUpdateClause;
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.leaveBed : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
GETSTATIC com/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3.$$$$currentPlayTime : I
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.set (Lcom/mysema/query/types/Path;Ljava/lang/Object;)Lcom/mysema/query/sql/dml/SQLUpdateClause;
ALOAD 9
GETFIELD com/demonwav/statcraft/querydsl/QSleep.timeSlept : Lcom/mysema/query/types/path/NumberPath;
CHECKCAST com/mysema/query/types/Path
ALOAD 10
LDC "timeSlept"
INVOKEVIRTUAL java/util/HashMap.get (Ljava/lang/Object;)Ljava/lang/Object;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.set (Lcom/mysema/query/types/Path;Ljava/lang/Object;)Lcom/mysema/query/sql/dml/SQLUpdateClause;
INVOKEVIRTUAL com/mysema/query/sql/dml/SQLUpdateClause.execute ()J
POP2
L49
LINENUMBER 515 L49
L48
LINENUMBER 516 L48
GOTO L50
L50
GETSTATIC kotlin/Unit.INSTANCE : Lkotlin/Unit;
INVOKESTATIC kotlin/jvm/internal/InlineMarker.afterInlineCall ()V
POP
L51
LINENUMBER 758 L51
L39
LINENUMBER 759 L39
GOTO L8
L8
INVOKESTATIC kotlin/jvm/internal/InlineMarker.afterInlineCall ()V
L52
LINENUMBER 518 L52
L53
LINENUMBER 519 L53
RETURN
L54
LOCALVARIABLE enterBed Ljava/lang/Integer; L11 L24 11
LOCALVARIABLE map Ljava/util/HashMap; L10 L24 10
LOCALVARIABLE s Lcom/demonwav/statcraft/querydsl/QSleep; L9 L25 9
LOCALVARIABLE query Lcom/mysema/query/sql/SQLQuery; L9 L25 8
LOCALVARIABLE $i$a$1$runQuery I L9 L25 15
LOCALVARIABLE s Lcom/demonwav/statcraft/querydsl/QSleep; L32 L38 9
LOCALVARIABLE clause Lcom/mysema/query/sql/dml/SQLInsertClause; L32 L38 8
LOCALVARIABLE map Ljava/util/HashMap; L32 L38 10
LOCALVARIABLE $i$a$2$runQuery I L32 L38 11
LOCALVARIABLE s Lcom/demonwav/statcraft/querydsl/QSleep; L44 L50 9
LOCALVARIABLE clause Lcom/mysema/query/sql/dml/SQLUpdateClause; L44 L50 8
LOCALVARIABLE map Ljava/util/HashMap; L44 L50 10
LOCALVARIABLE $i$a$3$runQuery I L44 L50 11
LOCALVARIABLE clause$iv Lcom/mysema/query/sql/dml/SQLInsertClause; L31 L1 17
LOCALVARIABLE clause$iv Lcom/mysema/query/sql/dml/SQLUpdateClause; L43 L51 18
LOCALVARIABLE e$iv Lcom/mysema/query/QueryException; L2 L51 17
LOCALVARIABLE r$iv Ljava/lang/Object; L26 L8 16
LOCALVARIABLE $receiver$iv Lcom/mysema/query/sql/RelationalPath; L5 L8 6
LOCALVARIABLE plugin$iv Lcom/demonwav/statcraft/StatCraft; L5 L8 7
LOCALVARIABLE $i$f$runQuery I L5 L8 19
LOCALVARIABLE this Lcom/demonwav/statcraft/StatCraft$finishPlaytimeAndBed$1$3; L3 L54 0
LOCALVARIABLE $receiver Ljava/sql/Connection; L3 L54 1
LOCALVARIABLE $i$a$3$use I L3 L54 5
MAXSTACK = 6
MAXLOCALS = 20
at org.jetbrains.kotlin.codegen.inline.MethodInliner.wrapException(MethodInliner.java:727)
at org.jetbrains.kotlin.codegen.inline.MethodInliner.analyzeMethodNodeBeforeInline(MethodInliner.java:526)
at org.jetbrains.kotlin.codegen.inline.MethodInliner.markPlacesForInlineAndRemoveInlinable(MethodInliner.java:401)
at org.jetbrains.kotlin.codegen.inline.MethodInliner.doInline(MethodInliner.java:107)
at org.jetbrains.kotlin.codegen.inline.MethodInliner.access$800(MethodInliner.java:45)
at org.jetbrains.kotlin.codegen.inline.MethodInliner$1.visitMethodInsn(MethodInliner.java:244)
at org.jetbrains.org.objectweb.asm.tree.MethodInsnNode.accept(MethodInsnNode.java:133)
at org.jetbrains.org.objectweb.asm.tree.InsnList.accept(InsnList.java:162)
at org.jetbrains.org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:817)
at org.jetbrains.kotlin.codegen.inline.MethodInliner.doInline(MethodInliner.java:311)
at org.jetbrains.kotlin.codegen.inline.MethodInliner.doInline(MethodInliner.java:111)
at org.jetbrains.kotlin.codegen.inline.MethodInliner.doInline(MethodInliner.java:95)
at org.jetbrains.kotlin.codegen.inline.InlineCodegen.inlineCall(InlineCodegen.java:392)
at org.jetbrains.kotlin.codegen.inline.InlineCodegen.genCallInner(InlineCodegen.java:149)
... 95 more
Caused by: org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 27: Cannot pop operand off an empty stack.
at org.jetbrains.kotlin.codegen.optimization.common.MethodAnalyzer.analyze(MethodAnalyzer.kt:116)
at org.jetbrains.kotlin.codegen.optimization.fixStack.FixStackMethodTransformer.transform(FixStackMethodTransformer.kt:43)
at org.jetbrains.kotlin.codegen.optimization.MandatoryMethodTransformer.transform(MandatoryMethodTransforker.kt:29)
at org.jetbrains.kotlin.codegen.inline.MethodInliner.analyzeMethodNodeBeforeInline(MethodInliner.java:523)
... 107 more
Caused by: java.lang.IndexOutOfBoundsException: Cannot pop operand off an empty stack.
at org.jetbrains.org.objectweb.asm.tree.analysis.Frame.pop(Frame.java:221)
at org.jetbrains.kotlin.codegen.optimization.fixStack.FixStackAnalyzer$FixStackFrame.pop(FixStackAnalyzer.kt:112)
at org.jetbrains.kotlin.codegen.optimization.fixStack.FixStackAnalyzer$FixStackFrame.pop(FixStackAnalyzer.kt:53)
at org.jetbrains.org.objectweb.asm.tree.analysis.Frame.execute(Frame.java:324)
at org.jetbrains.kotlin.codegen.optimization.fixStack.FixStackAnalyzer$FixStackFrame.execute(FixStackAnalyzer.kt:81)
at org.jetbrains.kotlin.codegen.optimization.common.MethodAnalyzer.analyze(MethodAnalyzer.kt:85)
... 110 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment