Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13039

Get rid of possibility to change final static fields through reflection for test purpose.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8
    • 2.9
    • general
    • None

    Description

      Rare for tests purpose there is a need for changing some private fields through reflection.
      Changing static final fields in this manner could bring more tears, check for example [1] and [2].

      [1] https://stackoverflow.com/questions/3301635/change-private-static-final-field-using-java-reflection
      [2] http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.28

      Attachments

        Issue Links

          Activity

            People

              zstan Evgeny Stanilovsky
              zstan Evgeny Stanilovsky
              Alexey Goncharuk Alexey Goncharuk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m