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

internal JIT(3.00.039(x))error;

XMLWordPrintable



      Name: vi73552 Date: 03/29/99


      'Java/io/outputStreamWriter.write([CII]V':Interpreting method

      A nonfatal internal JIT(3.00.039(x))error;
       'IsSimpleMethod:Undefined java opcode(bf)'
      (Review ID: 56214)
      ======================================================================

      Name: krT82822 Date: 06/13/99


      Well I'm not sure what happened for sure. I was just playing
      around with a piece of code I had made. You click start and then
      the ball is supposed to start. When you click stop the ball should stop.
      It worked fine but then I repleaced the ball with a rectangle and then it
      gave me an error and told me to contact you at this URL.
      Here is a copy of my code if you need to further inspect it.
      I dont't really care either way as all I was doing was playing around
      and have absolutley NO need of a moving square, if you know
      what I mean!! =) So here is my code:

      import java.awt.*; //Importing the necessary classes.
      import java.awt.event.*;
      import java.applet.Applet;

      public class roundup2 extends Applet implements Runnable
      { //My main class.
       String one = "Start!";
       String two = "Stop"; //Declaring strings, ints
       boolean isMoving; //and booleans.
       int x1=0,y1=0;
       int vpos = 0;
       Image offScreenImage; //My image and graphics variable.
       Graphics offScreenGraphics;
       Font f=new Font("SansSerif",Font.BOLD,32); //Set my font.
       FontMetrics fm = getFontMetrics(f);
       Thread runner;
       int textWidth = fm.stringWidth(one); //Declaring more ints.
       int textHeight = fm.getHeight();
       int textWidth1 = fm.stringWidth(two);
       int textHeight1 = fm.getHeight();
       
        public void init() //Init method.
        {
         offScreenImage = createImage (getSize().width, getSize().height);
         offScreenGraphics = offScreenImage.getGraphics();
         addMouseListener(new MouseAdapter() //Mouse Listener which gets
          { //the mouse clicks at the positions
           public void mouseClicked(MouseEvent e) //defined in this method.
           {
            x1=e.getX();
            y1=e.getY();
            if((x1<10+textWidth)&&(y1<10+textHeight)&&(y1>textHeight-10)&&(!isMoving))
            {
             isMoving = true; //Checking if the click is over the
             start(); //Start button.
            }
             else if((x1<10+textWidth1)&&(y1<110+textHeight1)&&(y1>125)&&(isMoving))
             {
             isMoving = false; //Checking if the click is over
             } //the Stop button.
           }
          });
         }
       
       public void start() //My start method which starts the
       { //applet.
         runner = null;
         if (runner == null)
        {
         runner = new Thread(this);
         runner.start();
        }
       }
       
       public void stop() //The stop method which stops the
       { //applet if it is moved to the
        if (runner!=null) //background and the like.
        {
         runner.stop();
         runner = null;
        }
       }
       
       public void update (Graphics g) //The update method which is
       { //'supposed' to take the flicker out.
        paint(g); //Mind you I said 'supposed' to. =)
       }
       
       public void run() //The run method which makes the
       { //applet run.
        while(isMoving)
        {
         vpos +=1; //The vpos of the ball is
         if (vpos==getSize().height) //increased by one.
          { //If the ball exits the bottom of
           vpos=0-70; //the screen then it should be
          } //repainted at the top.
           repaint();
           try
           {
            Thread.sleep (10); //The ball should wait 5 somethings
           } //before continuing.
            catch (InterruptedException e) {}
        } //Catching exceptions.
       }
         
       public void paint(Graphics g) //My paint method which paints all
       { //the images to the screen.
        offScreenGraphics.setColor (getBackground());
        offScreenGraphics.fillRect (0,0,getSize().width, getSize().height);
        offScreenGraphics.setColor (Color.blue);
        offScreenGraphics.drawRect(275,vpos,70,70);
        offScreenGraphics.setFont(f);
        offScreenGraphics.setColor (Color.green);
        offScreenGraphics.drawString(one,10,50); //I'm setting colors and drawing
        offScreenGraphics.setColor (Color.red); //strings on my board.
        offScreenGraphics.drawString(two,10,150);
        g.drawImage (offScreenImage,0,0,this);
       }
      } //With this parentheses I end this
      //beautiful program.


      --------------------

      (from subsequent report 84287:)

      Hello again! I just submiited a bug, but when I ran the program again it worked and never gave me a hassle!
      So I'll report the error it gave me in DOS when I tried to run it

      A nonfatal internal JIT (3.00.039(x)) error 'IsSimpleMethod: Undefined JAVA opcode(bf)'
      has occured in: 'sun/applet/AppletPanel.getNextEvent ()Lsun/applet/AppletEvent;': Interpreting method.
      Then it told me to report it to you so I did. Thanx for your time.

      Sincerely, Joey Mauro(JAVA hopeful)
      (Review ID: 84286)
      ======================================================================

            duke J. Duke
            vasya Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: