You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|Could not verify that the method argument is transitively initialized (Hot). It was found to be a function { this = the original object of type "class Outer" that started this trace, owner = class Outer }. Only transitively initialized arguments may be passed to methods outside the analyzed initialization region. Calling trace:
|Promoting the value to transitively initialized (Hot) failed due to the following problem:
11
+
|Could not verify that the method argument is transitively initialized (Hot). It was found to be the original object of type "class Outer" that started this trace. Only transitively initialized arguments may be passed to methods outside the analyzed initialization region.
12
+
|Non initialized field(s): value p. Promotion trace:
|Could not verify that the method argument is transitively initialized (Hot). It was found to be the original object of type "class B" that started this trace. Only transitively initialized arguments may be passed to methods outside the analyzed initialization region.
5
+
|Non initialized field(s): value result. Calling trace:
6
+
|-> class B extends A { [ default-this.scala:6 ]
7
+
| ^
8
+
|-> val result = updateThenCompare(5) [ default-this.scala:11 ]
| Cannot prove the method argument is hot. Only hot values are safe to leak.
5
-
| Found = ThisRef[class Sub].
6
-
| Non initialized field(s): value b. Calling trace:
7
-
| -> class Sub extends Sup: [ i15459.scala:5 ]
8
-
| ^
9
-
| -> class Sup: [ i15459.scala:1 ]
10
-
| ^
11
-
| -> println(this) // error [ i15459.scala:3 ]
12
-
| ^^^^
4
+
|Could not verify that the method argument is transitively initialized (Hot). It was found to be the original object of type "class Sub" that started this trace. Only transitively initialized arguments may be passed to methods outside the analyzed initialization region.
5
+
|Non initialized field(s): value b. Calling trace:
| The RHS of reassignment must be hot. Found = Warm[class B] { outer = Hot, args = (Cold) }. Calling trace:
5
-
|-> class C extends A { [ inherit-non-hot.scala:15 ]
6
-
| ^
7
-
|-> val bAgain = toB.getBAgain [ inherit-non-hot.scala:16 ]
8
-
| ^^^
9
-
|-> def toB: B = [ inherit-non-hot.scala:5 ]
10
-
| ^
11
-
|-> if b == null then b = new B(this) // error [ inherit-non-hot.scala:6 ]
12
-
| ^^^^^^^^^^^^^^^
4
+
|The RHS of reassignment must be transitively initialized (Hot). It was found to be an initialized (Warm) object of type class B{ outer = a transitively initialized (Hot) object, args = (an uninitialized (Cold) object) }. Calling trace:
5
+
|-> class C extends A { [ inherit-non-hot.scala:15 ]
6
+
| ^
7
+
|-> val bAgain = toB.getBAgain [ inherit-non-hot.scala:16 ]
8
+
| ^^^
9
+
|-> def toB: B = [ inherit-non-hot.scala:5 ]
10
+
| ^
11
+
|-> if b == null then b = new B(this) // error [ inherit-non-hot.scala:6 ]
12
+
| ^^^^^^^^^^^^^^^
13
13
|
14
-
|Promoting the value to hot (transitively initialized) failed due to the following problem:
15
-
| Cannot prove that the field value a is hot. Found = Cold. Promotion trace:
16
-
|-> class B(a: A) { [ inherit-non-hot.scala:10 ]
17
-
| ^^^^
14
+
|Promoting the value to transitively initialized (Hot) failed due to the following problem:
15
+
|Could not verify that the field value a is transitively initialized (Hot). It was found to be an uninitialized (Cold) object. Promotion trace:
|Could not verify that the method argument is transitively initialized (Hot). It was found to be the original object of type "class InlineError" that started this trace. Only transitively initialized arguments may be passed to methods outside the analyzed initialization region.
5
+
|Non initialized field(s): value v. Calling trace:
6
+
|-> class InlineError { [ inlined-method.scala:1 ]
|Could not verify that the method argument is transitively initialized (Hot). It was found to be the original object of type "class B" that started this trace. Only transitively initialized arguments may be passed to methods outside the analyzed initialization region.
5
+
|Non initialized field(s): value n. Calling trace:
0 commit comments