|
| 1 | +-- [E183] Potential Issue Error: tests/neg/17284.scala:4:6 ------------------------------------------------------------- |
| 2 | +4 | 451.synchronized {} // error |
| 3 | + | ^^^^^^^^^^^^^^^^ |
| 4 | + | Suspicious synchronized call on boxed class |
| 5 | + |--------------------------------------------------------------------------------------------------------------------- |
| 6 | + | Explanation (enabled by `-explain`) |
| 7 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 8 | + | You called the synchronized method on a boxed primitive. This might not be what |
| 9 | + | you intended. |
| 10 | + --------------------------------------------------------------------------------------------------------------------- |
| 11 | +-- [E183] Potential Issue Error: tests/neg/17284.scala:8:4 ------------------------------------------------------------- |
| 12 | +8 | x.synchronized {} // error |
| 13 | + | ^^^^^^^^^^^^^^ |
| 14 | + | Suspicious synchronized call on boxed class |
| 15 | + |--------------------------------------------------------------------------------------------------------------------- |
| 16 | + | Explanation (enabled by `-explain`) |
| 17 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 18 | + | You called the synchronized method on a boxed primitive. This might not be what |
| 19 | + | you intended. |
| 20 | + --------------------------------------------------------------------------------------------------------------------- |
| 21 | +-- [E183] Potential Issue Error: tests/neg/17284.scala:11:7 ------------------------------------------------------------ |
| 22 | +11 | true.synchronized {} // error |
| 23 | + | ^^^^^^^^^^^^^^^^^ |
| 24 | + | Suspicious synchronized call on boxed class |
| 25 | + |-------------------------------------------------------------------------------------------------------------------- |
| 26 | + | Explanation (enabled by `-explain`) |
| 27 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 28 | + | You called the synchronized method on a boxed primitive. This might not be what |
| 29 | + | you intended. |
| 30 | + -------------------------------------------------------------------------------------------------------------------- |
0 commit comments