-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b57
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2099059 | 5.0 | Venugopal K | P3 | Resolved | Fixed | rc |
text node is moved after adding new element
To reproduce the problem , use the attached program
java -version
java version "1.5.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b55)
Java HotSpot(TM) Server VM (build 1.5.0-beta3-b55, mixed mode)
javac test.java
java test
actually the text is moved from 'screen-names' to 'screen-name'
Input - screenName.xml
--------------------------------------------------------------------------------
<?xml version="1.0"?>
<us:screen-names xmlns:us="http://hibid.com/screenName">
abcd
<us:screen-name>
<us:userName xmlns:us="http://hibid.com/user"> tom </us:userName>
<userNo>10 </userNo>
</us:screen-name>
</us:screen-names>
Output - screenNameOut.xml
-------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<us:screen-names xmlns:us="http://hibid.com/screenName"><us:screen-name>
abcd
<us:userName xmlns:us="http://hibid.com/user"> tom </us:userName>
<userNo>10 </userNo>
<userEmail xmlns="http://hibid.com/user">###@###.###</userEmail></us:screen-name>
</us:screen-names>
To reproduce the problem , use the attached program
java -version
java version "1.5.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b55)
Java HotSpot(TM) Server VM (build 1.5.0-beta3-b55, mixed mode)
javac test.java
java test
actually the text is moved from 'screen-names' to 'screen-name'
Input - screenName.xml
--------------------------------------------------------------------------------
<?xml version="1.0"?>
<us:screen-names xmlns:us="http://hibid.com/screenName">
abcd
<us:screen-name>
<us:userName xmlns:us="http://hibid.com/user"> tom </us:userName>
<userNo>10 </userNo>
</us:screen-name>
</us:screen-names>
Output - screenNameOut.xml
-------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<us:screen-names xmlns:us="http://hibid.com/screenName"><us:screen-name>
abcd
<us:userName xmlns:us="http://hibid.com/user"> tom </us:userName>
<userNo>10 </userNo>
<userEmail xmlns="http://hibid.com/user">###@###.###</userEmail></us:screen-name>
</us:screen-names>
- backported by
-
JDK-2099059 text node is moved after adding new element
- Resolved