We're updating the issue view to help you get more done. 

Explore with simple string resource value cryptically gives "Malformed value" error

Description

Some digging showed that this must be due to the following snipped in ValueDecoder.parseLiteral(String value):

1 2 String label = value.substring(1, value.lastIndexOf('"')); String rest = value.substring(label.length() + 2);

For a simple resource string with no language tag or datatype, this results in a IndexOutOfBoundsException, which propagates up to the code giving the "Malformed value" message.

2 options here:

  1. Preferred: Change code to accept simple strings, too. (Not sure if this is even valid or would work. Further research needed.)

  2. Continue to reject simple strings, but give a more informative error message.

Environment

None

Status

Assignee

Dale W. Visser

Reporter

Dale W. Visser

Labels

None

Components

Fix versions

Affects versions

2.7.0-beta2

Priority

Minor