|
1 | 1 | -- [E181] Potential Issue Error: tests/neg/i17266.scala:4:2 ------------------------------------------------------------
|
2 | 2 | 4 | synchronized { // error
|
3 | 3 | | ^^^^^^^^^^^^
|
4 |
| - | Suspicious call to Predef.synchronized |
| 4 | + | Suspicious top-level unqualified call to synchronized |
5 | 5 | |---------------------------------------------------------------------------------------------------------------------
|
6 | 6 | | Explanation (enabled by `-explain`)
|
7 | 7 | |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
8 | 8 | | Top-level unqualified calls to AnyRef or Any methods such as synchronized are
|
9 |
| - | resolved to calls on Predef. This might not be what you intended. |
| 9 | + | resolved to calls on Predef or on imported methods. This might not be what |
| 10 | + | you intended. |
10 | 11 | ---------------------------------------------------------------------------------------------------------------------
|
11 |
| --- [E182] Potential Issue Error: tests/neg/i17266.scala:9:7 ------------------------------------------------------------ |
12 |
| -9 | this.synchronized { // error |
13 |
| - | ^^^^^^^^^^^^^^^^^ |
14 |
| - | Suspicious top-level call to this.synchronized |
15 |
| - |--------------------------------------------------------------------------------------------------------------------- |
16 |
| - | Explanation (enabled by `-explain`) |
17 |
| - |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
18 |
| - | Top-level calls to AnyRef or Any methods are resolved to calls on the |
19 |
| - | synthetic package object generated for the current file. This might not be |
20 |
| - | what you intended. |
21 |
| - --------------------------------------------------------------------------------------------------------------------- |
22 |
| --- [E181] Potential Issue Error: tests/neg/i17266.scala:22:2 ----------------------------------------------------------- |
23 |
| -22 | wait() // error |
24 |
| - | ^^^^ |
25 |
| - | Suspicious call to Predef.wait |
26 |
| - |-------------------------------------------------------------------------------------------------------------------- |
27 |
| - | Explanation (enabled by `-explain`) |
28 |
| - |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
29 |
| - | Top-level unqualified calls to AnyRef or Any methods such as wait are |
30 |
| - | resolved to calls on Predef. This might not be what you intended. |
31 |
| - -------------------------------------------------------------------------------------------------------------------- |
32 |
| --- [E182] Potential Issue Error: tests/neg/i17266.scala:25:7 ----------------------------------------------------------- |
33 |
| -25 | this.wait() // error |
34 |
| - | ^^^^^^^^^ |
35 |
| - | Suspicious top-level call to this.wait |
36 |
| - |-------------------------------------------------------------------------------------------------------------------- |
37 |
| - | Explanation (enabled by `-explain`) |
38 |
| - |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
39 |
| - | Top-level calls to AnyRef or Any methods are resolved to calls on the |
40 |
| - | synthetic package object generated for the current file. This might not be |
41 |
| - | what you intended. |
42 |
| - -------------------------------------------------------------------------------------------------------------------- |
43 |
| --- [E181] Potential Issue Error: tests/neg/i17266.scala:32:2 ----------------------------------------------------------- |
44 |
| -32 | wait(10) // error |
45 |
| - | ^^^^ |
46 |
| - | Suspicious call to Predef.wait |
47 |
| - |-------------------------------------------------------------------------------------------------------------------- |
48 |
| - | Explanation (enabled by `-explain`) |
49 |
| - |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
50 |
| - | Top-level unqualified calls to AnyRef or Any methods such as wait are |
51 |
| - | resolved to calls on Predef. This might not be what you intended. |
52 |
| - -------------------------------------------------------------------------------------------------------------------- |
53 |
| --- [E182] Potential Issue Error: tests/neg/i17266.scala:35:7 ----------------------------------------------------------- |
54 |
| -35 | this.wait(10) // error |
55 |
| - | ^^^^^^^^^ |
56 |
| - | Suspicious top-level call to this.wait |
57 |
| - |-------------------------------------------------------------------------------------------------------------------- |
58 |
| - | Explanation (enabled by `-explain`) |
59 |
| - |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
60 |
| - | Top-level calls to AnyRef or Any methods are resolved to calls on the |
61 |
| - | synthetic package object generated for the current file. This might not be |
62 |
| - | what you intended. |
63 |
| - -------------------------------------------------------------------------------------------------------------------- |
64 |
| --- [E181] Potential Issue Error: tests/neg/i17266.scala:42:2 ----------------------------------------------------------- |
65 |
| -42 | hashCode() // error |
66 |
| - | ^^^^^^^^ |
67 |
| - | Suspicious call to Predef.hashCode |
68 |
| - |-------------------------------------------------------------------------------------------------------------------- |
69 |
| - | Explanation (enabled by `-explain`) |
70 |
| - |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
71 |
| - | Top-level unqualified calls to AnyRef or Any methods such as hashCode are |
72 |
| - | resolved to calls on Predef. This might not be what you intended. |
73 |
| - -------------------------------------------------------------------------------------------------------------------- |
74 |
| --- [E182] Potential Issue Error: tests/neg/i17266.scala:45:7 ----------------------------------------------------------- |
75 |
| -45 | this.hashCode() // error |
76 |
| - | ^^^^^^^^^^^^^ |
77 |
| - | Suspicious top-level call to this.hashCode |
| 12 | +-- [E181] Potential Issue Error: tests/neg/i17266.scala:17:2 ----------------------------------------------------------- |
| 13 | +17 | synchronized { // error |
| 14 | + | ^^^^^^^^^^^^ |
| 15 | + | Suspicious top-level unqualified call to synchronized |
78 | 16 | |--------------------------------------------------------------------------------------------------------------------
|
79 | 17 | | Explanation (enabled by `-explain`)
|
80 | 18 | |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
81 |
| - | Top-level calls to AnyRef or Any methods are resolved to calls on the |
82 |
| - | synthetic package object generated for the current file. This might not be |
83 |
| - | what you intended. |
| 19 | + | Top-level unqualified calls to AnyRef or Any methods such as synchronized are |
| 20 | + | resolved to calls on Predef or on imported methods. This might not be what |
| 21 | + | you intended. |
84 | 22 | --------------------------------------------------------------------------------------------------------------------
|
| 23 | +-- [E181] Potential Issue Error: tests/neg/i17266.scala:108:2 ---------------------------------------------------------- |
| 24 | +108 | wait() // error |
| 25 | + | ^^^^ |
| 26 | + | Suspicious top-level unqualified call to wait |
| 27 | + |------------------------------------------------------------------------------------------------------------------- |
| 28 | + | Explanation (enabled by `-explain`) |
| 29 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 30 | + | Top-level unqualified calls to AnyRef or Any methods such as wait are |
| 31 | + | resolved to calls on Predef or on imported methods. This might not be what |
| 32 | + | you intended. |
| 33 | + ------------------------------------------------------------------------------------------------------------------- |
| 34 | +-- [E181] Potential Issue Error: tests/neg/i17266.scala:115:2 ---------------------------------------------------------- |
| 35 | +115 | wait() // error |
| 36 | + | ^^^^ |
| 37 | + | Suspicious top-level unqualified call to wait |
| 38 | + |------------------------------------------------------------------------------------------------------------------- |
| 39 | + | Explanation (enabled by `-explain`) |
| 40 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 41 | + | Top-level unqualified calls to AnyRef or Any methods such as wait are |
| 42 | + | resolved to calls on Predef or on imported methods. This might not be what |
| 43 | + | you intended. |
| 44 | + ------------------------------------------------------------------------------------------------------------------- |
| 45 | +-- [E181] Potential Issue Error: tests/neg/i17266.scala:121:2 ---------------------------------------------------------- |
| 46 | +121 | wait(10) // error |
| 47 | + | ^^^^ |
| 48 | + | Suspicious top-level unqualified call to wait |
| 49 | + |------------------------------------------------------------------------------------------------------------------- |
| 50 | + | Explanation (enabled by `-explain`) |
| 51 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 52 | + | Top-level unqualified calls to AnyRef or Any methods such as wait are |
| 53 | + | resolved to calls on Predef or on imported methods. This might not be what |
| 54 | + | you intended. |
| 55 | + ------------------------------------------------------------------------------------------------------------------- |
| 56 | +-- [E181] Potential Issue Error: tests/neg/i17266.scala:128:2 ---------------------------------------------------------- |
| 57 | +128 | wait(10) // error |
| 58 | + | ^^^^ |
| 59 | + | Suspicious top-level unqualified call to wait |
| 60 | + |------------------------------------------------------------------------------------------------------------------- |
| 61 | + | Explanation (enabled by `-explain`) |
| 62 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 63 | + | Top-level unqualified calls to AnyRef or Any methods such as wait are |
| 64 | + | resolved to calls on Predef or on imported methods. This might not be what |
| 65 | + | you intended. |
| 66 | + ------------------------------------------------------------------------------------------------------------------- |
| 67 | +-- [E181] Potential Issue Error: tests/neg/i17266.scala:134:2 ---------------------------------------------------------- |
| 68 | +134 | hashCode() // error |
| 69 | + | ^^^^^^^^ |
| 70 | + | Suspicious top-level unqualified call to hashCode |
| 71 | + |------------------------------------------------------------------------------------------------------------------- |
| 72 | + | Explanation (enabled by `-explain`) |
| 73 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 74 | + | Top-level unqualified calls to AnyRef or Any methods such as hashCode are |
| 75 | + | resolved to calls on Predef or on imported methods. This might not be what |
| 76 | + | you intended. |
| 77 | + ------------------------------------------------------------------------------------------------------------------- |
| 78 | +-- [E181] Potential Issue Error: tests/neg/i17266.scala:141:2 ---------------------------------------------------------- |
| 79 | +141 | hashCode() // error |
| 80 | + | ^^^^^^^^ |
| 81 | + | Suspicious top-level unqualified call to hashCode |
| 82 | + |------------------------------------------------------------------------------------------------------------------- |
| 83 | + | Explanation (enabled by `-explain`) |
| 84 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 85 | + | Top-level unqualified calls to AnyRef or Any methods such as hashCode are |
| 86 | + | resolved to calls on Predef or on imported methods. This might not be what |
| 87 | + | you intended. |
| 88 | + ------------------------------------------------------------------------------------------------------------------- |
0 commit comments