Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8349660

JDK 23 NPE in Eclipse JDT core test

XMLWordPrintable

    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      eclipse tests JDK23 only on Linux, still may be relevant on other OS

      A DESCRIPTION OF THE PROBLEM :
      Some junit tests in eclipse IDE fail on JDK 23 (even after updating to 23.0.2) randomly with a NullpointerException that should be impossible since the value is guaranteed to be not null.




      REGRESSION : Last worked in version 21.0.6

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      I don’t know how to boil it down a small reproducer. I don’t know how to proceed without linking to external resources.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      no NPE
      ACTUAL -
      java.lang.NullPointerException: Cannot invoke "org.eclipse.jdt.core.dom.rewrite.TargetSourceRangeComputer$SourceRange.getStartPosition()" because "range" is null
      at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.getExtendedEnd(ASTRewriteAnalyzer.java:264)


      ---------- BEGIN SOURCE ----------
      org.eclipse.jdt.core.tests.rewrite.modifying.ASTRewritingModifyingReplaceTest.test0014a
      ---------- END SOURCE ----------

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: