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: 2015-02-11 16:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
:


Attachments
stacktrace (2.36 KB, text/plain)
2013-12-06 10:09 UTC, J Bachorik
Details
stacktrace (2.80 KB, text/plain)
2014-11-17 12:00 UTC, wjdhamilton
Details
stacktrace (2.80 KB, text/plain)
2014-11-17 12:27 UTC, wjdhamilton
Details
stacktrace (3.66 KB, text/plain)
2014-12-15 21:37 UTC, Exceptions Reporter
Details
stacktrace (3.66 KB, text/plain)
2015-01-18 20:45 UTC, jason3421
Details
stacktrace (2.80 KB, text/plain)
2015-02-11 16:42 UTC, wjdhamilton
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
Comment 2 wjdhamilton 2014-11-17 12:00:56 UTC
Created attachment 150520 [details]
stacktrace

Typing in the comments for the method getByFranchise
Comment 3 wjdhamilton 2014-11-17 12:27:56 UTC
Created attachment 150521 [details]
stacktrace

I has just selected the getFranchise() method in autocomplete
Comment 4 Exceptions Reporter 2014-11-17 12:27:59 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=205830
Comment 5 Exceptions Reporter 2014-12-15 21:37:55 UTC
Created attachment 151121 [details]
stacktrace

coding. debugging. not sure what i was doing a couple minutes ago.
Comment 6 jason3421 2015-01-18 20:45:44 UTC
Created attachment 151564 [details]
stacktrace

ne viem
Comment 7 wjdhamilton 2015-02-11 16:42:32 UTC
Created attachment 151956 [details]
stacktrace

Coding a Comparator between two Strings within a lambda expression as follows:

manager.getAvailableCampaigns().stream().sorted((responseA, responseB) -> {
          return responseA.getName().compareTo(responseB.getName());
}).collect(Collectors.toSet());


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