Using the attachment under b26 or later (haven't tried earlier, don't
know where this first comes up) causes a:
[wetmore@bongos] 433 >./doit
+ /java/re/jdk/1.5.0/promoted/all/b26/binaries/solaris-sparc/bin/javac -J-XX:ThreadStackSize=768 -J-Xms64m -J-Xmx256m -J-Xmaxf1 -source 1.5 KeyTool.java
An exception has occurred in the compiler (1.5.0-beta). Please file a bug at the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.ArrayIndexOutOfBoundsException: -1
at com.sun.tools.javac.jvm.Code.emitop0(Code.java:545)
at com.sun.tools.javac.jvm.Items$StackItem.duplicate(Items.java:271)
at com.sun.tools.javac.jvm.Gen.visitNewArray(Gen.java:1702)
at com.sun.tools.javac.tree.Tree$NewArray.accept(Tree.java:848)
at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:801)
at com.sun.tools.javac.jvm.Gen.visitVarDef(Gen.java:954)
at com.sun.tools.javac.tree.Tree$VarDef.accept(Tree.java:502)
at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:648)
at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:683)
at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:669)
at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:720)
at com.sun.tools.javac.jvm.Gen.visitBlock(Gen.java:967)
at com.sun.tools.javac.tree.Tree$Block.accept(Tree.java:531)
at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:648)
at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:683)
at com.sun.tools.javac.jvm.Gen.genMethod(Gen.java:905)
at com.sun.tools.javac.jvm.Gen.visitMethodDef(Gen.java:841)
at com.sun.tools.javac.tree.Tree$MethodDef.accept(Tree.java:473)
at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:648)
at com.sun.tools.javac.jvm.Gen.genClass(Gen.java:2163)
at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:328)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:467)
at com.sun.tools.javac.main.Main.compile(Main.java:598)
at com.sun.tools.javac.main.Main.compile(Main.java:546)
at com.sun.tools.javac.Main.compile(Main.java:41)
at com.sun.tools.javac.Main.main(Main.java:32)
/*
* NEAL, this is where the problem occurs. I can use either
* an int variable, or a literal.
*/
Object[] source = {cert.getSubjectDN().toString(),
cert.getIssuerDN().toString(),
cert.getSerialNumber().toString(16),
cert.getNotBefore().toString(),
cert.getNotAfter().toString(),
1,
getCertFingerPrint("MD5", cert),
getCertFingerPrint("SHA1", cert)};
out.println(form.format(source));
know where this first comes up) causes a:
[wetmore@bongos] 433 >./doit
+ /java/re/jdk/1.5.0/promoted/all/b26/binaries/solaris-sparc/bin/javac -J-XX:ThreadStackSize=768 -J-Xms64m -J-Xmx256m -J-Xmaxf1 -source 1.5 KeyTool.java
An exception has occurred in the compiler (1.5.0-beta). Please file a bug at the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.ArrayIndexOutOfBoundsException: -1
at com.sun.tools.javac.jvm.Code.emitop0(Code.java:545)
at com.sun.tools.javac.jvm.Items$StackItem.duplicate(Items.java:271)
at com.sun.tools.javac.jvm.Gen.visitNewArray(Gen.java:1702)
at com.sun.tools.javac.tree.Tree$NewArray.accept(Tree.java:848)
at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:801)
at com.sun.tools.javac.jvm.Gen.visitVarDef(Gen.java:954)
at com.sun.tools.javac.tree.Tree$VarDef.accept(Tree.java:502)
at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:648)
at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:683)
at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:669)
at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:720)
at com.sun.tools.javac.jvm.Gen.visitBlock(Gen.java:967)
at com.sun.tools.javac.tree.Tree$Block.accept(Tree.java:531)
at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:648)
at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:683)
at com.sun.tools.javac.jvm.Gen.genMethod(Gen.java:905)
at com.sun.tools.javac.jvm.Gen.visitMethodDef(Gen.java:841)
at com.sun.tools.javac.tree.Tree$MethodDef.accept(Tree.java:473)
at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:648)
at com.sun.tools.javac.jvm.Gen.genClass(Gen.java:2163)
at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:328)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:467)
at com.sun.tools.javac.main.Main.compile(Main.java:598)
at com.sun.tools.javac.main.Main.compile(Main.java:546)
at com.sun.tools.javac.Main.compile(Main.java:41)
at com.sun.tools.javac.Main.main(Main.java:32)
/*
* NEAL, this is where the problem occurs. I can use either
* an int variable, or a literal.
*/
Object[] source = {cert.getSubjectDN().toString(),
cert.getIssuerDN().toString(),
cert.getSerialNumber().toString(16),
cert.getNotBefore().toString(),
cert.getNotAfter().toString(),
1,
getCertFingerPrint("MD5", cert),
getCertFingerPrint("SHA1", cert)};
out.println(form.format(source));
- duplicates
-
JDK-4934916 boxing versus array initializers crashes javac
- Resolved