Skip to content

OOM caused when correct delimiter is missing #20

@wls981

Description

@wls981

This is not a correct application and is a problem caused by human error. When a line in the properties file lacks the correct delimiter, a java.lang.OutOfMemoryError is caused.

example code:

//String content = "key=A-string-that-lacks-the-correct-delimiter"; //correct
String content = "A-string-that-lacks-the-correct-delimiter"; //The string that caused oom
Reader r = new StringReader(content);

Properties p = new Properties();
p.load(r);

System.out.println(p.get("key"));

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions