ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject ignite git commit: Ignore all IgniteInternalFuture's descendants at ClassesGenetator (IgniteInternalFuture can't be used directly since it located at core package)
Date Wed, 11 Jan 2017 11:45:55 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-comm-balance-master 3fe7dfba2 -> 54e72b1fb


Ignore all IgniteInternalFuture's descendants at ClassesGenetator (IgniteInternalFuture can't
be used directly since it located at core package)


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/54e72b1f
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/54e72b1f
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/54e72b1f

Branch: refs/heads/ignite-comm-balance-master
Commit: 54e72b1fb52030adc4eb58ffce22f543e1d3e45b
Parents: 3fe7dfb
Author: Anton Vinogradov <av@apache.org>
Authored: Wed Jan 11 14:45:47 2017 +0300
Committer: Anton Vinogradov <av@apache.org>
Committed: Wed Jan 11 14:45:47 2017 +0300

----------------------------------------------------------------------
 .../java/org/apache/ignite/tools/classgen/ClassesGenerator.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/54e72b1f/modules/tools/src/main/java/org/apache/ignite/tools/classgen/ClassesGenerator.java
----------------------------------------------------------------------
diff --git a/modules/tools/src/main/java/org/apache/ignite/tools/classgen/ClassesGenerator.java
b/modules/tools/src/main/java/org/apache/ignite/tools/classgen/ClassesGenerator.java
index 4f4890e..b1a3af9 100644
--- a/modules/tools/src/main/java/org/apache/ignite/tools/classgen/ClassesGenerator.java
+++ b/modules/tools/src/main/java/org/apache/ignite/tools/classgen/ClassesGenerator.java
@@ -33,7 +33,6 @@ import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Comparator;
 import java.util.TreeSet;
-import java.util.concurrent.locks.AbstractQueuedSynchronizer;
 import java.util.jar.JarEntry;
 import java.util.jar.JarInputStream;
 
@@ -126,7 +125,7 @@ public class ClassesGenerator {
 
             System.out.println(msg);
 
-            // throw new Exception(msg); TODO
+            throw new Exception(msg);
         }
 
         PrintStream out = new PrintStream(new File(basePath,
@@ -212,7 +211,7 @@ public class ClassesGenerator {
         if (included) {
             Class<?> cls = Class.forName(clsName, false, ldr);
 
-            if (Serializable.class.isAssignableFrom(cls) && !AbstractQueuedSynchronizer.class.isAssignableFrom(cls))
{
+            if (Serializable.class.isAssignableFrom(cls) && !cls.getName().endsWith("Future"))
{
                 if (!cls.isInterface() && !Modifier.isAbstract(cls.getModifiers())
&& !cls.isEnum() &&
                     !cls.getSimpleName().isEmpty()) {
                     try {


Mime
View raw message