You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by jl...@apache.org on 2018/09/24 19:04:29 UTC

[incubator-netbeans] 06/07: Removing a JDK10 workaround for unattributable anonymous classes.

This is an automated email from the ASF dual-hosted git repository.

jlahoda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git

commit f7f663f42c016e7cfe4af35a4c509c2c82594670
Author: Jan Lahoda <jl...@netbeans.org>
AuthorDate: Sun Sep 23 10:17:20 2018 +0200

    Removing a JDK10 workaround for unattributable anonymous classes.
---
 .../src/org/netbeans/lib/nbjavac/services/NBAttr.java    | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/java/lib.nbjavac/src/org/netbeans/lib/nbjavac/services/NBAttr.java b/java/lib.nbjavac/src/org/netbeans/lib/nbjavac/services/NBAttr.java
index f693de8..07d94a4 100644
--- a/java/lib.nbjavac/src/org/netbeans/lib/nbjavac/services/NBAttr.java
+++ b/java/lib.nbjavac/src/org/netbeans/lib/nbjavac/services/NBAttr.java
@@ -73,22 +73,6 @@ public class NBAttr extends Attr {
         super.visitBlock(tree);
     }
 
-    @Override
-    public void visitNewClass(JCNewClass tree) {
-        super.visitNewClass(tree);
-        if (tree.def != null && tree.def.sym == null) {
-            try {
-                Field envField = Attr.class.getDeclaredField("env");
-                envField.setAccessible(true);
-                Env<AttrContext> env = (Env<AttrContext>) envField.get(this);
-                env = env.dup(tree);
-                attribStat(tree.def, env);
-            } catch (NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException ex) {
-                Logger.getLogger(NBAttr.class.getName()).log(Level.FINE, null, ex);
-            }
-        }
-    }
-
     private boolean fullyAttribute;
     private Env<AttrContext> fullyAttributeResult;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists