This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 239183 - com.sun.tools.javac.comp.Resolve$InapplicableMethodException at com.sun.tools.javac.comp.Resolve.<init>
Summary: com.sun.tools.javac.comp.Resolve$InapplicableMethodException at com.sun.tools...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-06 10:09 UTC by J Bachorik
Modified: 2017-05-04 01:47 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205830


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
stacktrace (794 bytes, text/plain)
2016-02-14 21:25 UTC, Vladimir Voskresensky
Details
IDE log - Pressing ENTER to select an auto-complete suggested method (318.10 KB, text/plain)
2016-06-06 21:04 UTC, zmirc
Details
IDE log (83.97 KB, text/plain)
2016-08-27 11:43 UTC, zmirc
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());
Comment 8 Exceptions Reporter 2016-01-12 02:45:38 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=205830
Comment 9 Vladimir Voskresensky 2016-02-14 21:25:49 UTC
Created attachment 158496 [details]
stacktrace

call java completion in NativePointer class
Comment 11 zmirc 2016-06-06 21:04:04 UTC
Created attachment 159975 [details]
IDE log - Pressing ENTER to select an auto-complete suggested method
Comment 12 zmirc 2016-08-27 11:43:21 UTC
Writing inside a lambda expression in NB 201608040002
Code:

    public static void removeLangsWithoutAccess(Collection<TMTopic> topics, Set<Integer> tAccess) {
	topics.removeIf(t -> {
		t.getLangToDetails().entrySet().removeIf(e -> !tAccess.contains(e.getValue().getAccess()));
		return t.getLangToDetails()
			}
	);
Comment 13 zmirc 2016-08-27 11:43:26 UTC
Created attachment 161784 [details]
IDE log
Comment 14 Quality Engineering 2016-09-14 02:06:37 UTC
Integrated into 'main-silver', will be available in build *201609140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/16199afccb84
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #239183 - com.sun.tools.javac.comp.Resolve$InapplicableMethodException at com.sun.tools.javac.comp.Resolve.<init> - more diags added.
Comment 16 Quality Engineering 2017-05-04 01:47:02 UTC
Integrated into 'main-silver', will be available in build *201705040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a9e4c7d22c19
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #239183 and #257282 fixed.