[
http://jira.jboss.com/jira/browse/JBAS-4892?page=comments#action_12388344 ]
Takayoshi Kimura commented on JBAS-4892:
----------------------------------------
OK, it's pretty hard to find, I put another example of this code:
String s = "from system property";
if (s == null); // <- SEMI-COLON HERE - this if statement does nothing
{
s = "override";
}
System.out.println(s); // This always print "override"
WebService ignores java.rmi.server.codebase system property
-----------------------------------------------------------
Key: JBAS-4892
URL:
http://jira.jboss.com/jira/browse/JBAS-4892
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: JBossAS-4.2.2.GA
Reporter: Takayoshi Kimura
Fix For: JBossAS-4.2.3.GA
server/src/main/org/jboss/web/WebService.java
The trailing semicolon of if statement is a bug.
String codebase = getCodebase(); // This returns system property value
if (codebase == null); // HERE
{
codebase = "http://" + getHost() + ":" + getPort() +
"/";
System.setProperty("java.rmi.server.codebase", codebase);
}
log.info("Using RMI server codebase: " + codebase);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira