[JIRA] Created: (CAL-22) Parser fails to load properties file if value contains space only

Parser fails to load properties file if value contains space only ----------------------------------------------------------------- Key: CAL-22 URL: http://jira.qos.ch/browse/CAL-22 Project: CAL10N Issue Type: Bug Reporter: Michael Osipov Assignee: Ceki Gulcu Cal10n fails if a property looks like this: "KEY = " or more spaces after the equals sign. The exception is: Exception in thread "main" java.lang.IllegalStateException: Unexpected token Token(EOL) at ch.qos.cal10n.util.Parser.E(Parser.java:76) at ch.qos.cal10n.util.Parser.parseAndPopulate(Parser.java:60) at ch.qos.cal10n.util.CAL10NResourceBundle.read(CAL10NResourceBundle.java:57) at ch.qos.cal10n.util.CAL10NResourceBundle.<init>(CAL10NResourceBundle.java:50) at ch.qos.cal10n.util.CAL10NResourceBundleFinder.makePropertyResourceBundle(CAL10NResourceBundleFinder.java:83) at ch.qos.cal10n.util.CAL10NResourceBundleFinder.getBundle(CAL10NResourceBundleFinder.java:51) at ch.qos.cal10n.MessageConveyor.lookup(MessageConveyor.java:111) at ch.qos.cal10n.MessageConveyor.getMessage(MessageConveyor.java:77) Regular java.util.Properties does not fail. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
participants (1)
-
Michael Osipov (JIRA)