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 192208 - AssertionError at org.netbeans.modules.java.source.usages.ClassFileUtil.createExecutableDescriptor
Summary: AssertionError at org.netbeans.modules.java.source.usages.ClassFileUtil.creat...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 192813 193388 193637 193696 194079 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-20 08:45 UTC by franci
Modified: 2011-01-07 10:11 UTC (History)
21 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 173498


Attachments
stacktrace (1.02 KB, text/plain)
2010-11-20 08:45 UTC, franci
Details
stacktrace (1.04 KB, text/plain)
2010-12-06 17:24 UTC, Andrew Krasny
Details
stacktrace (1.04 KB, text/plain)
2010-12-08 17:36 UTC, javydreamercsw
Details
stacktrace (1.04 KB, text/plain)
2010-12-16 14:05 UTC, Andrew Krasny
Details
stacktrace (1.04 KB, text/plain)
2010-12-20 21:42 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description franci 2010-11-20 08:45:00 UTC
Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) Client VM, 18.0-b02, Java(TM) SE Runtime Environment, 1.7.0-ea-b89
OS: Linux

User Comments:
franci: just typing in java editor

Chiana: Was editing some code trying to make a new SwingWorker, after I pressed <end> to get to the last position of the line this occured.

Line is;
new SwingWorker()

Chiana: Not sure exactly what I was doing, was fiddling with a fairly long line attempting to convert a string to an Object in a single line.

The line at time of error : return (Serializable) (new ObjectInputStream(new InputStream(new StringReader(sto.getData())))).readObject();

with the cursor on "e" in the second new and I think I pressed control-P to check parameter types for ObjectInputStream

Chiana: Was editing adding a new workerthread...
private SwingWorker TickTack=new SwingWorker();
Was just about to add a { before the ; and start the main body of the worker




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.java.source.usages.ClassFileUtil.createExecutableDescriptor(ClassFileUtil.java:181)
   at org.netbeans.api.java.source.ElementHandle.create(ElementHandle.java:402)
   at org.netbeans.modules.java.navigation.CaretListeningTask.run(CaretListeningTask.java:194)
   at org.netbeans.modules.java.navigation.CaretListeningTask.run(CaretListeningTask.java:78)
   at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:330)
   at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:675)
Comment 1 franci 2010-11-20 08:45:04 UTC
Created attachment 103128 [details]
stacktrace
Comment 2 Tomas Zezula 2010-11-22 14:07:34 UTC
I am not able to reproduce it. So I've added at least logging jet-main a9a51244eb22.
The assert means that a parent of method is not type.
Please reopen when it happens with the additional logging.
Comment 3 Quality Engineering 2010-11-23 06:08:01 UTC
Integrated into 'main-golden', will be available in build *201011230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a9a51244eb22
User: Tomas Zezula <tzezula@netbeans.org>
Log: #192208:AssertionError at org.netbeans.modules.java.source.usages.ClassFileUtil.createExecutableDescriptor
Comment 4 Chiana 2010-11-24 17:18:03 UTC
Will do...
Comment 5 Tomas Zezula 2010-11-24 17:25:29 UTC
Thanks
Comment 6 stefan79 2010-11-25 10:09:41 UTC
Reopened, because Exception occured at current build (201011250001).
Maybe it´s another bug.

It has now been added to the database with id #443694. It has been classified as a duplicate of report #173498.
Comment 7 Tomas Zezula 2010-11-25 10:31:43 UTC
OK, thanks.
No with additional debug info it's clear what happens.
Comment 8 Tomas Zezula 2010-11-25 13:32:31 UTC
The debug shows that the problem is that the method owner is type parameter, should be class or interface. If someone has a project which can be shared and causes this problem please attach it.
Comment 9 Jan Lahoda 2010-12-03 12:31:06 UTC
*** Bug 192813 has been marked as a duplicate of this bug. ***
Comment 10 Andrew Krasny 2010-12-06 17:24:29 UTC
Created attachment 103630 [details]
stacktrace

wrote:
private final BlockingQueue<Request> queue = new BlockingQueue<Request>(); 
in my class while Request class is not defined yet.
Comment 11 javydreamercsw 2010-12-08 17:36:48 UTC
Created attachment 103748 [details]
stacktrace

Editing java file
Comment 12 Tomas Zezula 2010-12-14 17:17:55 UTC
*** Bug 193388 has been marked as a duplicate of this bug. ***
Comment 13 Andrew Krasny 2010-12-16 14:05:13 UTC
Created attachment 104156 [details]
stacktrace

misspelled 'final' in variable declaration:
fincl Type<Integer> v = new Type<Integer>();
Comment 14 Tomas Zezula 2010-12-16 21:01:47 UTC
Is someone able to reproduce this issue?
If so, can I send you a patched version of javac with additional logging?
Thanks
Comment 15 misterm 2010-12-20 21:42:16 UTC
Created attachment 104328 [details]
stacktrace
Comment 16 Dusan Balek 2010-12-22 12:05:01 UTC
*** Bug 193637 has been marked as a duplicate of this bug. ***
Comment 17 Jan Lahoda 2011-01-03 13:32:03 UTC
*** Bug 193696 has been marked as a duplicate of this bug. ***
Comment 18 Jan Lahoda 2011-01-03 14:01:49 UTC
Problems in navigator and hints can be reproduced using the following field
declaration:
Map <String,Object>connection=new Map<String,Object>();
(java.util.Map should be imported). For hints, this will cause an immediate
exception. For navigator, place the caret inside the '()' brackets.

The problematic MethodSymbol is likely "virtual" (non-existent) Map constructor
whose owner is Symtab.noSymbol.
Comment 19 Dusan Balek 2011-01-05 10:58:56 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/e5fcb7cfb4e6
Comment 20 Quality Engineering 2011-01-06 09:18:13 UTC
Integrated into 'main-golden', will be available in build *201101060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e5fcb7cfb4e6
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #192208: AssertionError at org.netbeans.modules.java.source.usages.ClassFileUtil.createExecutableDescriptor - fixed.
Comment 21 Jan Lahoda 2011-01-07 10:11:47 UTC
*** Bug 194079 has been marked as a duplicate of this bug. ***