Incorrect parameterized testing of exceptions in AbstractDateTimeTest.java

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 27
    • Component/s: core-libs
    • generic
    • generic

      test/jdk/java/time/tck/java/time/AbstractDateTimeTest.java has some methods that check exceptions. The intention appears to iterate through multiple TemporalAccessors and check DateTimeException for each one. In reality, only the first TemporalAccessor returned by `samples()` is checked.

      See `test_get_TemporalField_invalidField()` and `test_getLong_TemporalField_invalidField()`

            Assignee:
            Justin Lu
            Reporter:
            Justin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: