Commit bef3b70
committed
Fix JRUBY-6865
JRuby allows invalid attr_accessor (MRI raises exception)
Our test for local variable names (which applies in both JRuby and
MRI to attr names) did not check for trailing ?. I added that one
case.
Note that in MRI all of this passes through ID parsing, which has
logic for checking the type of ID I did not attempt to sort out.
There are other cases we probably let through that MRI does not.
Test submitted to MRI via ruby/ruby#1711 parent 709cceb commit bef3b70
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1346 | 1346 | | |
1347 | 1347 | | |
1348 | 1348 | | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
1349 | 1354 | | |
1350 | 1355 | | |
1351 | 1356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
65 | | - | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
0 commit comments