-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
None
-
merlin
-
sparc
-
solaris_8
-
Verified
********************************************************************************
tuong.nguyen@eng 2000-10-25
- Problem description:
A java.lang.NullPointerException was returned when compiled with Merlin
(jdk1.4) "rmic -idl ..." but not with Kestrel (jdk1.3) "rmic -idl ..." . The
output below shows that the same Test1.java was compiled with Merlin and with
Kestrel rmic -idl commands, for Merlin, an exception was returned but for
Kestrel the command worked and Test1.idl file was generated. Regression??
(tuongn@bonnelle) [7:03pm] class01 [360] % cat Test1.java
// OMG ptc/00-01-06 - 1.3.6 Mapping for RMI/IDL Arrays
import java.io.*;
public class Test1 implements Serializable {
private java.awt.Frame [] f1;
}
(tuongn@bonnelle) [7:03pm] class01 [361] % /usr/local/java/jdk1.4/solsparc/bin/rmic -idl Test1
java.lang.NullPointerException
at sun.rmi.rmic.iiop.CompoundType.getMethods(CompoundType.java:220)
at sun.rmi.rmic.iiop.IDLGenerator.getMethods(IDLGenerator.java:1013)
at sun.rmi.rmic.iiop.IDLGenerator.accumulateReferences(IDLGenerator.java:339)
at sun.rmi.rmic.iiop.IDLGenerator.getAllReferencesFor(IDLGenerator.java:289)
at sun.rmi.rmic.iiop.IDLGenerator.getOutputTypesFor(IDLGenerator.java:242)
at sun.rmi.rmic.iiop.Generator.generateOutputFiles(Generator.java:298)
at sun.rmi.rmic.iiop.Generator.generate(Generator.java:279)
at sun.rmi.rmic.Main.doCompile(Main.java:526)
at sun.rmi.rmic.Main.compile(Main.java:133)
at sun.rmi.rmic.Main.main(Main.java:761)
error: An exception has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
1 error
(tuongn@bonnelle) [7:04pm] class01 [362] % /usr/local/java/jdk1.3/solaris/bin/rmic -idl Test1
(tuongn@bonnelle) [7:06pm] class01 [363] % cat Test1.idl
/**
* Test1.idl
* Generated by rmic -idl. Do not edit
* Wednesday, October 25, 2000 7:06:35 PM PDT
*/
#include "org/omg/boxedRMI/java/awt/seq1_Frame.idl"
#include "orb.idl"
#ifndef __Test1__
#define __Test1__
valuetype Test1 {
private ::org::omg::boxedRMI::java::awt::seq1_Frame f1;
factory create( );
};
#pragma ID Test1 "RMI:Test1:A7BCA790FC3EB961:4E9296D2D4461B95"
#endif
(tuongn@bonnelle) [7:07pm] class01 [364] %
********************************************************************************
tuong.nguyen@eng 2000-10-25
- Problem description:
A java.lang.NullPointerException was returned when compiled with Merlin
(jdk1.4) "rmic -idl ..." but not with Kestrel (jdk1.3) "rmic -idl ..." . The
output below shows that the same Test1.java was compiled with Merlin and with
Kestrel rmic -idl commands, for Merlin, an exception was returned but for
Kestrel the command worked and Test1.idl file was generated. Regression??
(tuongn@bonnelle) [7:03pm] class01 [360] % cat Test1.java
// OMG ptc/00-01-06 - 1.3.6 Mapping for RMI/IDL Arrays
import java.io.*;
public class Test1 implements Serializable {
private java.awt.Frame [] f1;
}
(tuongn@bonnelle) [7:03pm] class01 [361] % /usr/local/java/jdk1.4/solsparc/bin/rmic -idl Test1
java.lang.NullPointerException
at sun.rmi.rmic.iiop.CompoundType.getMethods(CompoundType.java:220)
at sun.rmi.rmic.iiop.IDLGenerator.getMethods(IDLGenerator.java:1013)
at sun.rmi.rmic.iiop.IDLGenerator.accumulateReferences(IDLGenerator.java:339)
at sun.rmi.rmic.iiop.IDLGenerator.getAllReferencesFor(IDLGenerator.java:289)
at sun.rmi.rmic.iiop.IDLGenerator.getOutputTypesFor(IDLGenerator.java:242)
at sun.rmi.rmic.iiop.Generator.generateOutputFiles(Generator.java:298)
at sun.rmi.rmic.iiop.Generator.generate(Generator.java:279)
at sun.rmi.rmic.Main.doCompile(Main.java:526)
at sun.rmi.rmic.Main.compile(Main.java:133)
at sun.rmi.rmic.Main.main(Main.java:761)
error: An exception has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
1 error
(tuongn@bonnelle) [7:04pm] class01 [362] % /usr/local/java/jdk1.3/solaris/bin/rmic -idl Test1
(tuongn@bonnelle) [7:06pm] class01 [363] % cat Test1.idl
/**
* Test1.idl
* Generated by rmic -idl. Do not edit
* Wednesday, October 25, 2000 7:06:35 PM PDT
*/
#include "org/omg/boxedRMI/java/awt/seq1_Frame.idl"
#include "orb.idl"
#ifndef __Test1__
#define __Test1__
valuetype Test1 {
private ::org::omg::boxedRMI::java::awt::seq1_Frame f1;
factory create( );
};
#pragma ID Test1 "RMI:Test1:A7BCA790FC3EB961:4E9296D2D4461B95"
#endif
(tuongn@bonnelle) [7:07pm] class01 [364] %
********************************************************************************