Summary: | [Patch] [BUILD] Error when compiling CredentialImpl.java | ||
---|---|---|---|
Product: | Lenya | Reporter: | michael.trindler |
Component: | Build System | Assignee: | Lenya Developers <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.0 | ||
Target Milestone: | 2.0.1 | ||
Hardware: | Other | ||
OS: | Windows XP | ||
Attachments: | fixes hashCode() method for Java 1.4.2 |
Description
michael.trindler
2007-11-14 13:15:36 UTC
Created attachment 21126 [details]
fixes hashCode() method for Java 1.4.2
This seems to fix the problem for Java 1.4.2, but I haven't tested with any
other Java versions.
Thanks, Jonathan! Your patch fixed the compilation issue on windows / java 1.4.2 (though I had to apply the changes manually - the patch file was malformed the way I downloaded it). Will try it on Mac OS / java 1.5.2 too. > Will try it on Mac OS / java 1.5.2 too.
Works fine!
I applied the patch in revision 615959. Please test. Thanks a lot! Compiling Lenya from source on Gentoo Linux w/ sun-jdk-1.4.2.16, tomcat-5.5.26 gave me a similar failure: compile-module-org.apache.lenya.modules.ac: Created dir: /usr/local/src/apache-lenya-2.0/build/lenya/modules/org.apache.lenya.modules.ac/java/classes/api Compiling 12 source files to /usr/local/src/apache-lenya-2.0/build/lenya/modules/org.apache.lenya.modules.ac/java/classes/api /usr/local/src/apache-lenya-2.0/src/modules-core/ac/java/src/org/apache/lenya/ac/impl/CredentialImpl.java:110: cannot resolve symbol symbol : method valueOf (int) location: class java.lang.Integer return Integer.valueOf(getAccreditable().hashCode() + getRole().hashCode()).hashCode(); ^ 1 error BUILD FAILED When using blackdown-jdk, it's the same. No errors, however, when compiling w/ sun-jdk-1.5.0.13 and tomcat-6.0.16, but not surprisingly that build throws a server exception. Do you want to reopen the bug or should I file a new one for that? Thanks. You're reporting the same issue, which has been reported to be fixed. My guess is you are using the 2.0.0 release? 2.0.0 came out before this fix was applied. The upcoming 2.0.1 release will have the fix. The subversion trunk would also have the fix. Sorry, it seems that I have mixed up something. Builds fine with svn 630221. Thanks for your work. |