Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87FA310552 for ; Thu, 14 May 2015 12:27:07 +0000 (UTC) Received: (qmail 83767 invoked by uid 500); 14 May 2015 12:27:07 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 83735 invoked by uid 500); 14 May 2015 12:27:07 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 83725 invoked by uid 99); 14 May 2015 12:27:07 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2015 12:27:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E373A1A2C20 for ; Thu, 14 May 2015 12:27:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.771 X-Spam-Level: * X-Spam-Status: No, score=1.771 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id IAbuMbpmQ0v7 for ; Thu, 14 May 2015 12:27:06 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id C7758453B2 for ; Thu, 14 May 2015 12:27:05 +0000 (UTC) Received: (qmail 83665 invoked by uid 99); 14 May 2015 12:27:04 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2015 12:27:04 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A36F8E3A5C; Thu, 14 May 2015 12:27:04 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.incubator.apache.org Date: Thu, 14 May 2015 12:27:10 -0000 Message-Id: <351d3f6b5bb94aabb1a1014dbe22b3f8@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [07/18] incubator-ignite git commit: IGNITE-894 Add missing field.setAccessible(true); IGNITE-894 Add missing field.setAccessible(true); Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/9ea2dbdd Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/9ea2dbdd Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/9ea2dbdd Branch: refs/heads/ignite-373 Commit: 9ea2dbdd9c5d89e3da3950ac40bf2aa2a16e283b Parents: 3e59d23 Author: sevdokimov Authored: Wed May 13 17:16:19 2015 +0300 Committer: sevdokimov Committed: Wed May 13 17:16:19 2015 +0300 ---------------------------------------------------------------------- .../ignite/internal/processors/resource/GridResourceIoc.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/9ea2dbdd/modules/core/src/main/java/org/apache/ignite/internal/processors/resource/GridResourceIoc.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/resource/GridResourceIoc.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/resource/GridResourceIoc.java index a2ffa55..55c0d3b 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/resource/GridResourceIoc.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/resource/GridResourceIoc.java @@ -277,8 +277,11 @@ class GridResourceIoc { if (injectRecursively != null || (allowImplicitInjection && field.getName().startsWith("this$") - || field.getName().startsWith("val$"))) + || field.getName().startsWith("val$"))) { + field.setAccessible(true); + recursiveFieldsList.add(field); + } else { for (Annotation ann : field.getAnnotations()) { T2, List> t2 = annMap.get(ann.annotationType());