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

jdb of JDK1.1.6 does not run on Solaris2.5.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.6
    • core-svc
    • sparc
    • solaris_2.5.1



      Name: clC74495 Date: 05/25/98


      The JDK1.1.6G jdb does not run on Solaris2.5. Following message
      is displayed.
       
      %javac -g TextAreaTest.java
      %jdb TextAreaTest
      Initializing jdb...
      [Internal debug-agent error: operation failed to complete - deadlock avoided]
      TextAreaTest not found.

      The code was tried in the following environment:
      %uname -a
      SunOS ireland 5.5 Generic_103093-14 sun4m sparc SUNW,SPARCstation-5

      [ Carlos.Lucasius@Canada: Licensee sent this additional information later: ]
      Recently I tried it on Solaris2.5.1
      where no Japanese locale has been installed, and I found
      jdb works as you say. The report I submitted was examined
      on Solaris with Japanese locale, which caused the error
      message below. The error message is still found in JDK1.1.6FCS
      when I check it on Solaris with Japanese locale installed.

      The source code of TextAreaTest.java is as follows:
       
      import java.util.*;
      import java.awt.*;
      import java.awt.event.*;
       
       
      public class TextAreaTest extends Frame implements java.awt.event.KeyListener,java.awt.event.MouseListener{
              
              TextArea text1;
              Label label2;
       
              public static void main(String argv[]){
       
                      TextAreaTest app = new TextAreaTest();
                      app.start();
              }
              
              public void paint(Graphics g){
              }
              
              public TextAreaTest(){
                      super("SimpleText");
                      init();
              }
       
              public void init() {
                      setSize(320, 240);
                      this.setLayout(new java.awt.GridLayout(2,1));
                      text1 = new TextArea("Type");
                      label2 = new Label("Away!");
                      add(text1);
                      add(label2);
                      this.text1.addKeyListener(this);
                      this.text1.addMouseListener(this);
                      this.label2.addKeyListener(this);
                      this.label2.addMouseListener(this);
                      paint(getGraphics());
                      
              }
              
              public void start(){
                      setVisible(true);
              }
              
              
              public void keyPressed(java.awt.event.KeyEvent event)
              {
                      System.out.println(event.toString());
              }
              public void keyReleased(java.awt.event.KeyEvent event)
              {
                      System.out.println(event.toString());
              }
              public void keyTyped(java.awt.event.KeyEvent event)
              {
                      System.out.println(event.toString());
                      Component component=event.getComponent();
                      if(component == label2) {
                              label2.setText(String.valueOf(event.getKeyChar()));
                              text1.setText(String.valueOf(event.getKeyChar()));
                      }
              }
              
              public void mouseClicked(java.awt.event.MouseEvent event)
              {
              }
              public void mouseEntered(java.awt.event.MouseEvent event)
              {
              }
              public void mouseExited(java.awt.event.MouseEvent event)
              {
              }
              public void mousePressed(java.awt.event.MouseEvent event)
              {
                      Component component=event.getComponent();
                      if(component == label2)
                              component.requestFocus();
              }
              public void mouseReleased(java.awt.event.MouseEvent event)
              {
              }
       
       
      }
      (Review ID: 24942)
      ======================================================================

            ghirschsunw Gordon Hirsch (Inactive)
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: