Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-14107] IllegalAccessError on Run.charset.
  • Loading branch information
jglick committed Aug 7, 2012
1 parent b6c4fe7 commit d2bef2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/hudson/model/ExternalRun.java
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d2bef2c

Please sign in to comment.