Commit 648d661
committed
Deprecate all public RubyString constructors
We would like to make RubyString abstract, so it can be represented
more efficiently when containing a single character or a Java
String. In order to do so, we need users to stop using the public
constructors.
This patch deprecates all of the constructors for removal. They
will not prevent compilation, but they should show up a bit more
boldly and most Java editing tools will highlight them as errors.
See jruby#9369 for the attempt to abstract RubyString. This
effort will be put on hold for now due to the many exposed
constructors.
See jruby/jruby-openssl#355 for an example of an external library
that was using these constructors directly.1 parent 49dda12 commit 648d661
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| 422 | + | |
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
| 427 | + | |
426 | 428 | | |
427 | 429 | | |
428 | 430 | | |
429 | 431 | | |
| 432 | + | |
430 | 433 | | |
431 | 434 | | |
432 | 435 | | |
| |||
451 | 454 | | |
452 | 455 | | |
453 | 456 | | |
| 457 | + | |
454 | 458 | | |
455 | 459 | | |
456 | 460 | | |
457 | 461 | | |
458 | 462 | | |
459 | 463 | | |
| 464 | + | |
460 | 465 | | |
461 | 466 | | |
462 | 467 | | |
463 | 468 | | |
464 | 469 | | |
465 | 470 | | |
| 471 | + | |
466 | 472 | | |
467 | 473 | | |
468 | 474 | | |
469 | 475 | | |
470 | 476 | | |
471 | 477 | | |
| 478 | + | |
472 | 479 | | |
473 | 480 | | |
474 | 481 | | |
475 | 482 | | |
476 | 483 | | |
| 484 | + | |
477 | 485 | | |
478 | 486 | | |
479 | 487 | | |
480 | 488 | | |
481 | 489 | | |
482 | 490 | | |
| 491 | + | |
483 | 492 | | |
484 | 493 | | |
485 | 494 | | |
486 | 495 | | |
487 | 496 | | |
| 497 | + | |
488 | 498 | | |
489 | 499 | | |
490 | 500 | | |
| |||
0 commit comments