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

TEST_BUG: REG-TESTS: class defining the test must be declared public

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.1
    • Fix Version/s: 1.4.1
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      x86, sparc
    • OS:
      linux, solaris_8, windows_2000
    • Verification:
      Not verified

      Description



      Name: icR10030 Date: 08/05/2002



      Filed By : J2SE-SQA [###@###.###
      JDK : jdk1.4.1-rc-b18
      Testbase : Regression testsuite
      Platform[s] : Linux, Windows, Solaris
      Failing Test :
              CTE_REGTEST/Generic/4451915/Myclient.java
              CTE_REGTEST/Generic/4451915/Myclient1.java

      The both tests's classes Myclient and Myclient1 must be declared as public.
      Due to the bug, harness can't execute the tests.

      jtr file location:
      ==================
      /net/jtgb4u4c.eng/export/sail15/results/hopper/b18/regtest/win32/win2000_smp_linux-22/workDir/cte/CTE_REGTEST/Generic/4670958/Test4670958.jtr

      How to reproduce:
      =================
      Run the tests.

      Test output:
      ============

      java.lang.IllegalAccessException: Class com.sun.javatest.regtest.MainWrapper$MainThread can not access a member of class Myclient with modifiers "public static"
              at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
              at java.lang.reflect.Method.invoke(Method.java:317)
              at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
              at java.lang.Thread.run(Thread.java:536)

      JavaTest Message: Verify that the class defining the test is
      JavaTest Message: declared public (test invoked via reflection)

      STATUS:Error.java.lang.IllegalAccessException: Class com.sun.javatest.regtest.MainWrapper$MainThread can not access a member of class Myclient with modifiers "public static"
      result: Error. java.lang.IllegalAccessException: Class com.sun.javatest.regtest.MainWrapper$MainThread can not access a member of class Myclient with modifiers "public static"


      test result: Error. java.lang.IllegalAccessException: Class com.sun.javatest.regtest.MainWrapper$MainThread can not access a member of class Myclient with modifiers "public static"

      Specific Machine Info:
      ======================
      Hostname: linux-12
      OS: Linux Redhat 7.2

      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              asaha Abhijit Saha
              Reporter:
              ichesunw Iche Iche (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: