Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Normal

...

Java

...

resource

...

bundles

...

In

...

this

...

case

...

the

...

important

...

aspect

...

is

...

the

...

following:

{:=
Info
title
API:
java.util.Properties
}

The

method

does

not

treat

a

backslash

character,

\,

before

a

non-valid

escape

character

as

an

error;

the

backslash

is

silently

dropped.

For

example,

in

a

Java

string

the

sequence

"\z"

would

cause

a

compile

time

error.

In

contrast,

this

method

silently

drops

the

backslash.

Therefore,

this

method

treats

the

two

character

sequence

"\b"

as

equivalent

to

the

single

character

'b'.

MessageFormat rules

Extensively describing rules for embedding ' and {. (see javadoc API for MessageFormat)

Info
titlethe special chars ', { and }
  • escape ' with another ': resulting in '' (double-single quote)
  • escape \ with another \: resulting in
  • enclose } with ': resulting in '}'
  • enclose { with ': resulting in
{info} h3. MessageFormat rules Extensively describing rules for embedding ' and {. (see javadoc API for MessageFormat) Considering the special chars ', \{ and \} , we now have to: - escape ' with another ': resulting in '' (double-single quote) - escape \ with another \: resulting in \\ - enclose } with ': resulting in '}' - enclose { with ': resulting in
  • '{'