-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
5.0
-
x86
-
windows_xp
Name: jl125535 Date: 07/30/2004
FULL PRODUCT VERSION :
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
In com.sun.corba.se.impl.naming.cosnaming.NamingContextImpl.nameToString(NameComponent[] name)
the code does this
if (name != null || name.length > 0) {
this is bad. it should be
if (name != null && name.length > 0) {
REPRODUCIBILITY :
This bug can be reproduced always.
(Incident Review ID: 290253)
======================================================================
FULL PRODUCT VERSION :
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
In com.sun.corba.se.impl.naming.cosnaming.NamingContextImpl.nameToString(NameComponent[] name)
the code does this
if (name != null || name.length > 0) {
this is bad. it should be
if (name != null && name.length > 0) {
REPRODUCIBILITY :
This bug can be reproduced always.
(Incident Review ID: 290253)
======================================================================
- relates to
-
JDK-6224538 Avoid redundancies in cosnaming.NamingContextImpl and pcosnaming.NamingContextImpl
-
- Closed
-