Add documentation for the problem with CustomField encoders for mutable value objects, since we can't really do anything about it.
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@73 db60a039-f72e-0410-b1d2-baa000846441
This commit is contained in:
@@ -178,6 +178,8 @@ public class MessageFactory {
|
||||
if (templ != null) {
|
||||
for (int i = 2; i <= 128; i++) {
|
||||
if (templ.hasField(i)) {
|
||||
//We could detect here if there's a custom object with a CustomField,
|
||||
//but we can't copy the value so there's no point.
|
||||
m.setField(i, templ.getField(i).clone());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,9 +64,7 @@ public class ConfigParser {
|
||||
InputStream ins = MessageFactory.class.getClassLoader().getResourceAsStream(path);
|
||||
MessageFactory mfact = new MessageFactory();
|
||||
if (ins != null) {
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("ISO8583 Parsing config from classpath file {}", path);
|
||||
}
|
||||
log.debug("ISO8583 Parsing config from classpath file {}", path);
|
||||
try {
|
||||
parse(mfact, ins);
|
||||
} finally {
|
||||
@@ -207,9 +205,7 @@ public class ConfigParser {
|
||||
public static void configureFromClasspathConfig(MessageFactory mfact, String path) throws IOException {
|
||||
InputStream ins = MessageFactory.class.getClassLoader().getResourceAsStream(path);
|
||||
if (ins != null) {
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("ISO8583 Parsing config from classpath file {}", path);
|
||||
}
|
||||
log.debug("ISO8583 Parsing config from classpath file {}", path);
|
||||
try {
|
||||
parse(mfact, ins);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user