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

STD: Cannot debug applet classes from JAR except run

    XMLWordPrintable

Details

    • kestrel
    • x86
    • windows_nt
    • Not verified

    Description



      Name: mf23781 Date: 09/28/98


      *Steps to reproduce the defect:

      Put the testcase in a directory called Appendix/D09 and then
      start jdb like this:

      jdb sun.applet.AppletViewer Security01_unsigned.html
      Set a bkp in the actionPerformed method:
      stop in Appendix.D09.Security01.actionPerformed

      Then use the 'run' command to start the applet. You will notice
      that the applet has a big button on the right side called "Write
      to a file". If you click on this button, you should hit the bkp
      that you set.
      Note that, BECAUSE THE APPLET IS BEING RUN FROM A JAR FILE, the
      bkp will not be hit, even though the code where the bkp is set is
      clearly being executed.
      If you change the HTML file to run the applet directly from the
      .class file instead of from the .jar file (i.e. remove the <ARCHIVE> tag),
      you will see that the bkp is hit when you debug the applet as described
      above, so it seems to be a problem only when the applet is within a jar.

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

      Attachments

        Activity

          People

            ghirschsunw Gordon Hirsch (Inactive)
            miflemi Mick Fleming
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: