This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 51930 - AppletSupportTest.testgenerateHtmlFileURL failure in automated tests
Summary: AppletSupportTest.testgenerateHtmlFileURL failure in automated tests
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2004-11-30 09:31 UTC by Milan Kubec
Modified: 2006-03-24 12:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack trace (1.38 KB, text/plain)
2004-11-30 09:32 UTC, Milan Kubec
Details
proposed patch (995 bytes, patch)
2005-03-17 15:58 UTC, Pavel Buzek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2004-11-30 09:31:58 UTC
[]

junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at
org.netbeans.modules.java.j2seproject.applet.AppletSupportTest.testgenerateHtmlFileURL(AppletSupportTest.java:110)
...

Whole stack trace attached.
Comment 1 Milan Kubec 2004-11-30 09:32:53 UTC
Created attachment 19078 [details]
exc stack trace
Comment 2 Pavel Buzek 2005-03-17 15:57:14 UTC
The problem is in jdk1.5 where the AppletSupport is trying to do workAround for
issue 6193279. This workaround creates URL with back slashes on windoze and the
test cannot split is bcs it uses forward slash. I will attach a diff that makes
this pass on windoze. This part was written by Tomas. Tomasi, can you review and
integrate take this issue, please? Thanks.
Comment 3 Pavel Buzek 2005-03-17 15:58:09 UTC
Created attachment 20927 [details]
proposed patch
Comment 4 Pavel Buzek 2005-03-17 15:58:29 UTC
thanks
Comment 5 Tomas Zezula 2005-03-22 12:05:42 UTC
The patch is wrong, it would not work on UNIX.
Comment 6 Tomas Zezula 2005-03-22 13:20:28 UTC
Checking in
j2seproject/src/org/netbeans/modules/java/j2seproject/applet/AppletSupport.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/applet/AppletSupport.java,v
 <--  AppletSupport.java
new revision: 1.8; previous revision: 1.7
done
Comment 7 Milan Kubec 2005-07-08 11:17:08 UTC
Verified.