Commit 771afb0
committed
base compareTo should not silence all Ruby raised exceptions (fixes #2232)
this no longer makese sense - and leads to confusing behavior when Ruby objects are used within Java (delegating to <=> which might be user-defined)
every-one is expected to handle <=> on 1.9 (and return nil if not comparable)
on 1.8 we still swallow a NoMethodError as Object does not provide <=>1 parent 3160c14 commit 771afb0
2 files changed
Lines changed: 55 additions & 12 deletions
File tree
- core/src/main/java/org/jruby
- spec/java_integration/exceptions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
1118 | | - | |
1119 | 1118 | | |
1120 | 1119 | | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
| 1120 | + | |
1124 | 1121 | | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1130 | 1129 | | |
1131 | 1130 | | |
1132 | 1131 | | |
| |||
1141 | 1140 | | |
1142 | 1141 | | |
1143 | 1142 | | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1144 | 1164 | | |
1145 | 1165 | | |
1146 | 1166 | | |
| |||
1878 | 1898 | | |
1879 | 1899 | | |
1880 | 1900 | | |
1881 | | - | |
1882 | 1901 | | |
1883 | | - | |
| 1902 | + | |
1884 | 1903 | | |
1885 | | - | |
| 1904 | + | |
1886 | 1905 | | |
1887 | 1906 | | |
1888 | 1907 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
228 | 252 | | |
0 commit comments