idok-commit AT lists.psi.ch
Subject: Commit emails of the iDok project
List archive
[idok-commit] idok commit r234 - branches/rest/java/ch/idok/service/client/search/rest
Chronological Thread
- From: "AFS account Roman Geus" <geus AT savannah.psi.ch>
- To: idok-commit AT lists.psi.ch
- Subject: [idok-commit] idok commit r234 - branches/rest/java/ch/idok/service/client/search/rest
- Date: Wed, 24 Sep 2008 09:08:33 +0200
- List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
- List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>
Author: geus
Date: Wed Sep 24 09:08:32 2008
New Revision: 234
Log:
Java 5 compatibility fix in RestSearchIterator.java
Modified:
branches/rest/java/ch/idok/service/client/search/rest/RestSearchIterator.java
Modified:
branches/rest/java/ch/idok/service/client/search/rest/RestSearchIterator.java
==============================================================================
---
branches/rest/java/ch/idok/service/client/search/rest/RestSearchIterator.java
(original)
+++
branches/rest/java/ch/idok/service/client/search/rest/RestSearchIterator.java
Wed Sep 24 09:08:32 2008
@@ -158,7 +158,8 @@
final String serviceName = System
.getProperty("ch.idok.service.server.principal");
try {
- final String token = Subject.doAsPrivileged(cred.getSubject(),
+ // In Java 5 this ugly type cast is necessary
+ final String token = (String)
Subject.doAsPrivileged(cred.getSubject(),
new PrivilegedExceptionAction<String>() {
public String run() throws Exception {
return NegotiateFilter.buildToken64(serviceName);
- [idok-commit] idok commit r234 - branches/rest/java/ch/idok/service/client/search/rest, AFS account Roman Geus, 09/24/2008
Archive powered by MHonArc 2.6.19.