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

Hotspot reports NotFoundException in a correct program

XMLWordPrintable

    • x86_64
    • linux_ubuntu

      ADDITIONAL SYSTEM INFORMATION :
      Ubuntu Loinux 20.04

      openjdk version "1.8.0_402"
      OpenJDK Runtime Environment (Temurin)(build 1.8.0_402-b06)
      OpenJDK 64-Bit Server VM (Temurin)(build 25.402-b06, mixed mode)

      openjdk version "11.0.22" 2024-01-16
      OpenJDK Runtime Environment Temurin-11.0.22+7 (build 11.0.22+7)
      OpenJDK 64-Bit Server VM Temurin-11.0.22+7 (build 11.0.22+7, mixed mode)

      openjdk version "17.0.10" 2024-01-16
      OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7)
      OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      This test case creates a CtClass using ClassPool and tries to change its name. The NotFoundException will be reported when we execute the test case with hotsp-11, but nothing will be reported with hotsp-8 and 17.

      To facilitate the reproduction of this issue, we will upload the relevant class files to Google Drive.
      https://drive.google.com/file/d/1xmrJoGl1lIEcnSnrdXgVNUKQujXeFvTn/view?usp=sharing

      REGRESSION : Last worked in version 11.0.22

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Java11/bin/java -cp ./:./lib/javassist-3.12.0.GA.jar gadget.Gadget

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      nothing
      ACTUAL -
      NotFoundException

      FREQUENCY : always


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

              Created:
              Updated:
              Resolved: