Skip to content
Permalink
Browse files

[FIXED JENKINS-14107] IllegalAccessError on Run.charset.

  • Loading branch information
jglick committed Aug 7, 2012
1 parent b6c4fe7 commit d2bef2c24422b41960914fddc0dab321d59395b5
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/java/hudson/model/ExternalRun.java
@@ -79,6 +79,10 @@ public void cleanUp(BuildListener listener) {
});
}

private void setCharset(String c) { // JENKINS-14107
charset = c;
}

/**
* Instead of performing a build, accept the log and the return code
* from a remote machine.
@@ -118,7 +122,7 @@ public Result run(BuildListener listener) throws Exception {
p.nextTag(); // get to the <run>
p.nextTag(); // get to the <log>

charset=p.getAttributeValue(null,"content-encoding");
setCharset(p.getAttributeValue(null,"content-encoding"));
while(p.next()!= END_ELEMENT) {
int type = p.getEventType();
if(type== CHARACTERS || type== CDATA)

0 comments on commit d2bef2c

Please sign in to comment.
You can’t perform that action at this time.