JDK-6282030 : Regression: CTE_REGTEST/Generic/4506928/Application.java fails
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_98
  • CPU: x86
  • Submitted: 2005-06-07
  • Updated: 2012-08-06
  • Resolved: 2012-02-08
Related Reports
Relates :  
Relates :  
Description
JDK        	    : Mustang b38
Platform[s]         : Fails On:  win98
Failing Test [s]    : CTE_REGTEST/Generic/4506928/Application.java

    Test source location:
    =====================
/net/jdk/export/jpse04/Regression/1.6.0/test/CTE_REGTEST/Generic/4506928/Application.java

    jtr file location:
    ==================
/net/cady/export6/results/mustang/b38/reg/win98/CTE_REGTEST/Generic/4506928/Application.java

    How to reproduce:
    ====================
    - Set JAVA_HOME to Mustang b38 windows-i586
    - cd /net/jdk/export/jpse04/Regression/1.6.0/test/CTE_REGTEST/Generic/4506928    - /net/koori.sfbay/onestop/jct-tools/2.1.6/archive/fcs/binaries/win32/bin/jtreg -r:/tmp -w:/tmp Application.java

    Test output:
    =============
java.lang.RuntimeException: Test Failed
        at Test4506928.main(Test4506928.java:80)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:
83)
        at java.lang.Thread.run(Thread.java:595)


###@###.### 2005-06-07 23:13:26 GMT

Comments
EVALUATION As suggested, the testcase is poor design. It doesn't exist in JDK auto regression testbase and should be excluded by QA team from other tests.
08-02-2012

EVALUATION There is a bug in test that uses: System.runFinalization(); System.gc(); which give no guarantees of invoking finalizations which has decremention in SecondFrame class: protected void finalize() throws Throwable { instanceCount--; .... } Tests should never rely on finalize() bodies. Application test should be rewritten or removed from reg-test suite. ###@###.### 2005-06-08 08:32:24 GMT
08-06-2005