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 252859 - IncompatibleClassChangeError: Expected static method org.netbeans.modules.java.editor.imports.ComputeImports.displayNameForImport(Lorg/netbeans/api/java/source/CompilationInfo;Ljavax/lang/model/elemen
Summary: IncompatibleClassChangeError: Expected static method org.netbeans.modules.jav...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 253285 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-07 16:05 UTC by NwDx
Modified: 2015-07-29 01:30 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 217757


Attachments
stacktrace (1.65 KB, text/plain)
2015-06-07 16:05 UTC, NwDx
Details
stacktrace (1.65 KB, text/plain)
2015-06-07 18:17 UTC, NwDx
Details
stacktrace (1.65 KB, text/plain)
2015-06-09 15:14 UTC, skygo
Details
stacktrace (1.65 KB, text/plain)
2015-06-19 20:49 UTC, Maksim Khramov
Details
stacktrace (1.65 KB, text/plain)
2015-07-22 20:19 UTC, hstenger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NwDx 2015-06-07 16:05:54 UTC
Build: NetBeans IDE Dev (Build 201505300811)
VM: Java HotSpot(TM) Client VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15
OS: Windows 8

User Comments:
ewer: Created a stateless session bean and inserted the annotaion @Remote on the class.

NwDx: Edited

GUEST: aaa

DavidNavarre: Occured while scrolling amongst the source code

DavidNavarre: Occured while typing in a classname

DavidNavarre: Occured while scrolling over the source code




Stacktrace: 
java.lang.IncompatibleClassChangeError: Expected static method org.netbeans.modules.java.editor.imports.ComputeImports.displayNameForImport(Lorg/netbeans/api/java/source/CompilationInfo;Ljavax/lang/model/element/Element;)Ljava/lang/String;
   at org.netbeans.modules.java.hints.errors.ImportClass.run(ImportClass.java:222)
   at org.netbeans.modules.java.hints.infrastructure.CreatorBasedLazyFixList.compute(CreatorBasedLazyFixList.java:147)
   at org.netbeans.modules.java.hints.infrastructure.LazyHintComputation.run(LazyHintComputation.java:112)
   at org.netbeans.modules.java.hints.infrastructure.LazyHintComputation.run(LazyHintComputation.java:58)
   at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:298)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:584)
Comment 1 NwDx 2015-06-07 16:05:56 UTC
Created attachment 154092 [details]
stacktrace
Comment 2 NwDx 2015-06-07 18:17:39 UTC
Created attachment 154094 [details]
stacktrace

Edited file and Hit Crtl+Space for Code Completion on Map<Integer, List<R... then the error happens.
Comment 3 Exceptions Reporter 2015-06-09 15:05:45 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=217757
Comment 4 skygo 2015-06-09 15:14:44 UTC
Created attachment 154129 [details]
stacktrace

navigating on java code
Comment 5 NwDx 2015-06-09 15:16:51 UTC
Possible Solution: Uninstall the old Netbeans Dev Version and download the newest Netbeans Dev Version. Solved the issue to me.
Comment 6 Maksim Khramov 2015-06-19 20:49:39 UTC
Created attachment 154307 [details]
stacktrace

Edit JUnit test class
Comment 7 Exceptions Reporter 2015-06-19 20:50:22 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=217757
Comment 8 hstenger 2015-07-22 20:19:41 UTC
Created attachment 154801 [details]
stacktrace

Loaded NetBeans module project using org.openide.util.ImageUtilities class.
Removed import since it was flagged as unavailable.
Run "Fix imports" (no class found).
Added module dependency on "Utilities API" (found by searching for "ImageUtilities").
I wanted to run "Fix imports" again but then the exception popped up.
Comment 9 Svata Dedic 2015-07-24 07:58:11 UTC
Fixed in jet-main#1124b29534ab
Comment 10 Svata Dedic 2015-07-24 08:56:15 UTC
*** Bug 253285 has been marked as a duplicate of this bug. ***
Comment 11 Quality Engineering 2015-07-29 01:30:02 UTC
Integrated into 'main-silver', will be available in build *201507290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1124b29534ab
User: Svata Dedic <sdedic@netbeans.org>
Log: #252859: increased impl version to solve autoupdate - nonpublic method removed