-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.2.0, 1.2.1
-
generic, x86
-
generic, windows_95, windows_98, windows_nt
Name: tb29552 Date: 01/08/99
//Incident Detail #48126
/* Begin JITTest.java */
/*
While playing around with some Swing features, I get this message:
A nonfatal internal JIT (3.00.078(x)) error 'Unuse' has occurred in :
'JITTest.main ([Ljava/lang/String;)V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cg
i
My code is simple (composed of two classes only):
---------------------------------------------
*/
import javax.swing.*;
import javax.swing.border.*;
import java.awt.event.*;
import java.awt.*;
public class JITTest extends JFrame {
public static void main(String[] args) {
String[] iconFiles = {JITTestConstants.CUT_IMAGE_FILE,
JITTestConstants.CUT_IMAGE_FILE,
JITTestConstants.COPY_IMAGE_FILE,
JITTestConstants.PASTE_IMAGE_FILE,
JITTestConstants.NEW_IMAGE_FILE,
JITTestConstants.SWIRL_IMAGE_FILE};
JITTest test = new JITTest ("JITTest");
JPanel contentPane = new JPanel();
test.setContentPane(contentPane);
test.setLocation(100, 100);
contentPane.setBackground(Color.pink);
contentPane.setLayout(new GridLayout(5, 2, 5, 5));
JButton[] btn = new JButton[6];
JLabel[] label = new JLabel[6];
Dimension btnDim = new Dimension(100, 50);
for (int i = 1; i <= 5; i++) {
btn[i] = new JButton("Button # " + i);
label[i] = new JLabel("Label # " + i, new ImageIcon(iconFiles[i]), JLabel.RIGHT);
label[i].setLabelFor(btn[i]);
char[] charArray = Integer.toString(i).toCharArray();
label[i].setDisplayedMnemonic(charArray[0]);
// btn[i].setPreferredSize( btnDim ) ;
contentPane.add(label[i]);
contentPane.add(btn[i]);
}
for (int j = 1; j <= 5; j++) {
btn[j].setNextFocusableComponent(btn[(j + 2) % 5 + 1]);
}
contentPane.setBorder(BorderFactory.createTitledBorder("Button Palace"));
test.setVisible(true);
test.pack();
test.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent we) {
Window w = (Window) we.getSource();
w.setVisible(false);
w.dispose();
System.exit(1);
}
});
}
public JITTest (String text) {
super(text);
}
}
/* End JITTest.java */
//Incident Detail #48126
/* Begin JITTestConstants.java */
public interface JITTestConstants {
public static final String COPY_IMAGE_FILE = "copy.gif";
public static final String CUT_IMAGE_FILE = "cut.gif";
public static final String OPEN_IMAGE_FILE = "open.gif";
public static final String SAVE_IMAGE_FILE = "save.gif";
public static final String PASTE_IMAGE_FILE = "paste.gif";
public static final String FOLDER_IMAGE_FILE = "folder.gif";
public static final String NEW_IMAGE_FILE = "new.gif";
public static final String SWIRL_IMAGE_FILE = "swirl.gif";
}
/* End JITTestConstants.java */
(Review ID: 48126)
======================================================================
Name: skT88420 Date: 05/07/99
The following exception is thrown when jsconductor is executed:
A nonfatal internal JIT (3.00.078(x)) error 'Unuse' has occurred in : 'COM/sun/suntest/javascope/gui/O0981/O01003.<init> (LCOM/sun/suntest/javascope/gui/O0981/O0985;)V': Interpreting method.
However, the tool seems to instrument the java file successfully i.e. it compiles and
the javascope browser is able to read it.
My program hangs during execution and causes a java.lang.NoClassDefFoundError.
However, I'm not sure if this error is related. So I have produced a seperate bug
report for it.
The following is the jdk version information
-version
java version "1.2"
Classic VM (build JDK-1.2-V, native threads)
-fullversion
java full version "JDK-1.2-V"
My CLASSPATH reads :
CLASSPATH=.;c:\javascope\JavaScope.zip
(Review ID: 57961)
======================================================================
Name: skT88420 Date: 05/12/99
A nonfatal internal JIT (3.00.078(x)) error 'Unuse' has occurred in :
'GearBox.createGearBox (I)Ljavax/media/j3d/BranchGroup;': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cg
i
(Review ID: 63120)
======================================================================
Name: skT88420 Date: 06/04/99
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
at Aalst2.main(Aalst2.java:29)
A nonfatal internal JIT (3.00.078(x)) error 'Unuse' has occurred in :
'Aalst2.main ([Ljava/lang/String;)V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cg
(Review ID: 83905)
======================================================================
Name: skT88420 Date: 06/16/99
A nonfatal internal JIT (3.00.078(x)) error 'Unuse' has occurred in :
'GearBox.createGearBox (I)Ljavax/media/j3d/BranchGroup;': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
(Review ID: 84390)
======================================================================
Name: skT88420 Date: 07/09/99
A nonfatal internal JIT (3.00.078(x)) error 'Unuse' has occurred in :
'java/ViewPanel.custInfo ()Ljavax/swing/JScrollPane;': Interpreting method.
(Review ID: 85418)
======================================================================
Name: krT82822 Date: 07/13/99
I get the error:
A nonfatal internal JIT (3.00.078(x)) error 'Unuse' has occurred in :
'ZJeffVectoredFrame.placeComponents ()V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
The block of code that seems to generate it is:
JPanel paramPanel[] = new JPanel[ 13 ];
JLabel paramLabel[] = new JLabel[ 13 ];
JTextField paramField[] = new JTextField[ 13 ];
JPanel paramFieldPanel[] = new JPanel[ 13 ];
//Labels & Fields
for( int i=0;i<=12;i++)
{
paramPanel[i] = new JPanel();
paramPanel[i].setLayout( new BoxLayout( paramPanel[i], BoxLayout.Y_AXIS ) );
paramLabel[i] = new JLabel( "Param" + i );
paramPanel[i].add( paramLabel[i] );
paramField[i] = new JTextField( FIELD_WIDTH );
paramFieldPanel[i] = new JPanel();
paramFieldPanel[i].add( paramField[i] );
paramPanel[i].add( paramFieldPanel[i] );
}
If I comment out the BoxLayout, or if I don't add more than one thing, it doesn't give the error.
The total source of this application is only about 300 lines, and so not much can go wrong.
Especially since almost all of it is copied out of something that works fine.
If you care to see more, I can send you the whole source and let you deal with it.
I have a huge program that hasn't even gotten to alpha, and final is due in October.
(Review ID: 85560)
======================================================================