Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6713

TooComplexToDeterminizeException claims to be serializable but actually isn't?

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.3, 6.0
    • None
    • None
    • New

    Description

      This custom exception class, added in LUCENE-6046, claims to be Serializable since in inherits from Throwable yet if you try to serialize it you'll hit runtime exceptions because its members don't implement Serializable.

      We intentionally pushed Java serialization requirements out of Lucene a while back (LUCENE-2908), but maybe for custom exception classes which unfortunately necessarily claim to implement Serializable we need to do something?

      We could just mark the members transient here, but that would mean when you unserialize you get null members on the other end, e.g. you would no longer know which RegExp was problematic ...

      Attachments

        1. LUCENE-6713.patch
          3 kB
          Michael McCandless

        Activity

          People

            Unassigned Unassigned
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: