-
Bug
-
Resolution: Incomplete
-
P3
-
None
-
7u7
-
None
FULL PRODUCT VERSION :
java version " 1.7.0_07 "
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
A DESCRIPTION OF THE PROBLEM :
Class#getFields() erratically reports fields of the same class mutiple times or leaves existing fields out. If -Dsun.reflect.noCaches=true is set the error vanishes.
One example for this behaviour involved a class concrete class with a hierachy analog to
public interface IBase
public interface IDerived extends IBase
public abstract class AbstractBase implements IBase
public abstract class AbstractDerived extends AbstractBase
implements IDerived
public abstract class AbstractOther extends AbstractDerived
implements IOther
public class Concrete extends AbstractOther
(Static) fields from IBase were sometimes reported twice; fields from Concrete were ignored.
REPRODUCIBILITY :
This bug can be reproduced always.
java version " 1.7.0_07 "
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
A DESCRIPTION OF THE PROBLEM :
Class#getFields() erratically reports fields of the same class mutiple times or leaves existing fields out. If -Dsun.reflect.noCaches=true is set the error vanishes.
One example for this behaviour involved a class concrete class with a hierachy analog to
public interface IBase
public interface IDerived extends IBase
public abstract class AbstractBase implements IBase
public abstract class AbstractDerived extends AbstractBase
implements IDerived
public abstract class AbstractOther extends AbstractDerived
implements IOther
public class Concrete extends AbstractOther
(Static) fields from IBase were sometimes reported twice; fields from Concrete were ignored.
REPRODUCIBILITY :
This bug can be reproduced always.
- relates to
-
JDK-8013530 Invalid values cached for public fields of classes
-
- Closed
-