summaryrefslogtreecommitdiff
path: root/BKUApplet/src/main/java/at
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-09-27 14:46:21 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-09-27 14:46:21 +0000
commit8b2a2c3db5efb6b309655601604c0822d42910ca (patch)
tree3bb165a4022d6bfef9d3c126ad0d12c3c911554d /BKUApplet/src/main/java/at
parentb7db33782a22ac8a390f3983307cc2f7379d7712 (diff)
downloadmocca-8b2a2c3db5efb6b309655601604c0822d42910ca.tar.gz
mocca-8b2a2c3db5efb6b309655601604c0822d42910ca.tar.bz2
mocca-8b2a2c3db5efb6b309655601604c0822d42910ca.zip
Show correct calling method for checkPermissions
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1138 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUApplet/src/main/java/at')
-rw-r--r--BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
index d274e048..cf2fba35 100644
--- a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
+++ b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java
@@ -378,7 +378,17 @@ private boolean checkPermissions() {
return true;
} catch (Exception e) {
if (log.isDebugEnabled())
- log.debug("Not enough permissions for " + e.getStackTrace()[1].getMethodName());
+ {
+ StackTraceElement[] st = e.getStackTrace();
+ String method = "unknown";
+ for (int i = 0; i < st.length; i++) {
+ if (st[i].getClassName().equals(this.getClass().getName())) {
+ method = st[i+1].getMethodName();
+ break;
+ }
+ }
+ log.debug("Not enough permissions for " + method, e);
+ }
}
return false;
}