Bug 239183 - com.sun.tools.javac.comp.Resolve$InapplicableMethodException at com.sun.tools.javac.comp.Resolve.<init>
com.sun.tools.javac.comp.Resolve$InapplicableMethodException at com.sun.tools...
Status: NEW
Product: java
Classification: Unclassified
Component: Compiler
7.4
All All
: P3 (vote)
: TBD
Assigned To: Dusan Balek
issues@java
EXCEPTIONS_REPORT
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-06 10:09 UTC by J Bachorik
Modified: 2013-12-06 10:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments
stacktrace (2.36 KB, text/plain)
2013-12-06 10:09 UTC, J Bachorik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J Bachorik 2013-12-06 10:09:50 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Linux

User Comments:
yardus: injectables.stream().forEach(in -> {
            String cName = in.getInjection().getClass().getName();
            cName = cName.substring(0, cName.indexOf('/')).replace('.', '/');
            
            String handler = Agent.LAMBDAS.get(cName);
            
            System.out.println(cName + " : " + handler);
            
            String[] params = handler.split("\\.");
            String handlerClass = "/" + params[0] + ".class";
            String handlerMethod = params[1];
            
            try {
                InputStream is = Injector.class.getResourceAsStream(handlerClass);

                ClassReader cr = new ClassReader(is);
                cr.accept(new ClassVisitor(Opcodes.ASM4) {
                    ---> Trying to "Alt-Insert" generate an overriden method here
                }, ClassReader.SKIP_DEBUG);
            } catch (IOException e) {}
        });




Stacktrace: 
com.sun.tools.javac.comp.Resolve$InapplicableMethodException
   at com.sun.tools.javac.comp.Resolve.<init>(Resolve.java:141)
   at org.netbeans.lib.nbjavac.services.NBResolve.<init>(NBResolve.java:73)
   at org.netbeans.lib.nbjavac.services.NBResolve$1.make(NBResolve.java:67)
   at org.netbeans.lib.nbjavac.services.NBResolve$1.make(NBResolve.java:65)
   at com.sun.tools.javac.util.Context.get(Context.java:150)
   at com.sun.tools.javac.comp.Resolve.instance(Resolve.java:152)
Comment 1 J Bachorik 2013-12-06 10:09:53 UTC
Created attachment 142894 [details]
stacktrace


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo