[cal10n-dev] [JIRA] Created: (CAL-23) Parser fails to load properties file if only key exists
Michael Osipov (JIRA)
noreply-jira at qos.ch
Fri Sep 24 13:53:53 CEST 2010
Parser fails to load properties file if only key exists
--------------------------------------------------------
Key: CAL-23
URL: http://jira.qos.ch/browse/CAL-23
Project: CAL10N
Issue Type: Bug
Reporter: Michael Osipov
Assignee: Ceki Gulcu
Cal10n fails if a property looks like this:
"KEY =" no chars 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
More information about the cal10n-dev
mailing list