JDK-6871139 : TEST BUG: test/sun/security/validator/BasicTests.java gives compilation error
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 5.0u20
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-08-12
  • Updated: 2012-08-06
  • Resolved: 2009-09-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0u21 b01Fixed
Related Reports
Relates :  
Description
test/sun/security/validator/BasicTests.java

gives compilation error

/net/nightsvr.SFBay/export4/integration/5.0u22/j2se/test/sun/security/validator/BasicTests.java:129: ')' expected
        Test(String type, String variant, Chain chain, Cert anchor, boolean result) {
                    ^
/net/nightsvr.SFBay/export4/integration/5.0u22/j2se/test/sun/security/validator/BasicTests.java:168: ';' expected
    }
    ^
/net/nightsvr.SFBay/export4/integration/5.0u22/j2se/test/sun/security/validator/BasicTests.java:456: '}' expected
^
3 errors
result: Failed. Compilation failed

Comments
SUGGESTED FIX $ sccs diffs BasicTests.java ------- BasicTests.java ------- 2c2 < * @test %I% %W% --- > * @test %W% %E% 128,129d127 < < Test(String type, String variant, Chain chain, Cert anchor, boolean result) { 387,391d384 < // Time Stamping Authority test < // validate at "07/01/2004 1:00 PM, EST" < new Test(PKIX, TSA, TSA_CHAIN, TSA_ANCHOR, true, < new Date(1088701200000l)), <
12-08-2009

EVALUATION Function name decleared twice by mistake. Need to remove one. After removal of one, we've faced a new error as 'TSA' is not defined. This one is for 6ux and up. Removed that part of the code too.
12-08-2009