|
| 1 | +-- [E181] Potential Issue Error: tests/neg/i17266.scala:4:2 ------------------------------------------------------------ |
| 2 | +4 | synchronized { // error |
| 3 | + | ^^^^^^^^^^^^ |
| 4 | + | Suspicious call to Predef.synchronized |
| 5 | + |--------------------------------------------------------------------------------------------------------------------- |
| 6 | + | Explanation (enabled by `-explain`) |
| 7 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 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 intented. |
| 10 | + --------------------------------------------------------------------------------------------------------------------- |
| 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 intented. |
| 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 intented. |
| 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 intented. |
| 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 intented. |
| 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 intented. |
| 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 intented. |
| 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 |
| 78 | + |-------------------------------------------------------------------------------------------------------------------- |
| 79 | + | Explanation (enabled by `-explain`) |
| 80 | + |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 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 intented. |
| 84 | + -------------------------------------------------------------------------------------------------------------------- |
0 commit comments