aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src
diff options
context:
space:
mode:
authorClaude Brisson <cbrisson@apache.org>2016-09-12 11:49:15 +0000
committerClaude Brisson <cbrisson@apache.org>2016-09-12 11:49:15 +0000
commitbe754a549cb67e4e23ee3a49ff9a390402a1dd04 (patch)
tree645011e8cbfe72dfb4fc60fd26906d69dd1bd4ae /velocity-engine-core/src
parent266d431cc834d79d9ec993797105dda68f05cbae (diff)
downloadapache-velocity-engine-be754a549cb67e4e23ee3a49ff9a390402a1dd04.tar.gz
VelTools66TestCase is obsolete in JDK 8
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1760338 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src')
-rw-r--r--velocity-engine-core/src/test/java/org/apache/velocity/test/issues/VelTools66TestCase.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/velocity-engine-core/src/test/java/org/apache/velocity/test/issues/VelTools66TestCase.java b/velocity-engine-core/src/test/java/org/apache/velocity/test/issues/VelTools66TestCase.java
index 831e094c..3b2e802d 100644
--- a/velocity-engine-core/src/test/java/org/apache/velocity/test/issues/VelTools66TestCase.java
+++ b/velocity-engine-core/src/test/java/org/apache/velocity/test/issues/VelTools66TestCase.java
@@ -78,10 +78,19 @@ public class VelTools66TestCase
public void testVelTools66()
throws Exception
{
+ /* the testcase is obsolete in JDK 8, as SystemManager.checkMemberAccess is not anymore called
+ * by Class.getMethods() */
+
+ int javaVersion = Integer.parseInt(System.getProperty("java.version").split("\\.")[1]);
+ if (javaVersion >= 8)
+ {
+ return;
+ }
+
Method verifyMethod = TestInterface.class.getMethod("getTestValue", new Class[0]);
RuntimeInstance ri = new RuntimeInstance();
- log = new TestLogger();
+ log = new TestLogger(false, false);
Introspector introspector = new Introspector(log);
Method testMethod = introspector.getMethod(TestObject.class, "getTestValue", new Object[0]);