Name: gm110360 Date: 03/04/2002
FULL PRODUCT VERSION :
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
FULL OPERATING SYSTEM VERSION :
Microsoft Windows 2000 [Version 5.00.2195]
Service Pack 1
A DESCRIPTION OF THE PROBLEM :
By trying to compile tha attached code from Cryptix'
java.security package, the compiler crashes with a
java.lang.StackOverflowError
at com.sun.tools.javac.v8.comp.Attr.attribClass
(Attr.java:1408)
and after that runs in an endless loop.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just try to compile the attached source code.
EXPECTED VERSUS ACTUAL BEHAVIOR :
It just should compile. But it does not. :)
ERROR MESSAGES/STACK TRACES THAT OCCUR :
An exception has occurred in the compiler (1.3.1). Please file a bug at the
Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi). Include
your program and the following diagnostic in your report. Thank you.
java.lang.StackOverflowError
at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1408)
at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1408)
at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1408)
at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1408)
at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1408)
... (infinite loop here)
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
/* $Id: KeyPairGeneratorSpi.java,v 1.1 2000/02/09 20:29:26 gelderen Exp $
*
* Copyright (C) 2000 The Cryptix Foundation Limited.
* All rights reserved.
*
* Use, modification, copying and distribution of this software is subject
* the terms and conditions of the Cryptix General Licence. You should have
* received a copy of the Cryptix General Licence along with this library;
* if not, you can download a copy from http://www.cryptix.org/ .
*/
package java.security;
/**
* JDK 1.1 compatibility layer: our KeyPairGenerators derive from the JDK 1.2
* class KeyPairGeneratorSpi which is not present in JDK 1.1.
*
* @version $Revision: 1.1 $
* @author Jeroen C. van Gelderen (###@###.###)
*/
public abstract class KeyPairGeneratorSpi
extends KeyPairGenerator
{
public KeyPairGeneratorSpi()
{
super(""); // empty string (see MessageDigestSpi for explanation)
}
}
---------- END SOURCE ----------
(Review ID: 143665)
======================================================================
- duplicates
-
JDK-4497044 java.lang.StackOverflowError for cyclic inheritance
-
- Closed
-