[JAVAEETUTORIAL-124] technically incorrect statement in context of Java Created: 11/Jul/12  Updated: 16/Aug/12  Resolved: 25/Jul/12

Status: Closed
Project: javaeetutorial
Component/s: doc
Affects Version/s: 6.0.7-5
Fix Version/s: 6.0.7-5

Type: Bug Priority: Minor
Reporter: Brant Gurganus Assignee: Kim Haase
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


There is 'An empty string is represented as "". It is a character array of zero characters. A null string is represented by null. It can be described as the absence of a string instance.' as the second paragraph after "Validating Null and Empty Strings" on the page named "Using Bean Validation" at http://docs.oracle.com/javaee/6/tutorial/doc/gircz.html. The second sentence is not correct in the Java context. A character array is mutable. A String is not. So a string in Java is not a character array. It may be more technically accurate to say "It is a character sequence of zero characters." As String implements CharSequence, this is technically correct as well as conceptually correct.

Comment by Kim Haase [ 24/Jul/12 ]

Thank you for catching this error.

Comment by Kim Haase [ 25/Jul/12 ]

Checked in fix that changes "array" to "sequence".

Generated at Tue Dec 01 14:33:41 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.