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 267653 - IllegalArgumentException: Currently unsupported TypeKind: PACKAGE
Summary: IllegalArgumentException: Currently unsupported TypeKind: PACKAGE
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-20 17:36 UTC by zmirc
Modified: 2016-09-10 02:15 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 225841


Attachments
stacktrace (1.62 KB, text/plain)
2016-08-20 17:36 UTC, zmirc
Details
stacktrace (1.62 KB, text/plain)
2016-08-31 13:21 UTC, IrianR
Details
stacktrace (1.62 KB, text/plain)
2016-09-01 09:27 UTC, IrianR
Details
stacktrace (1.62 KB, text/plain)
2016-09-06 16:00 UTC, alied
Details
stacktrace (1.62 KB, text/plain)
2016-09-06 16:03 UTC, alied
Details
stacktrace (1.62 KB, text/plain)
2016-09-08 14:30 UTC, Exceptions Reporter
Details
stacktrace (5.99 KB, text/plain)
2016-09-09 14:09 UTC, skygo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zmirc 2016-08-20 17:36:48 UTC
Build: NetBeans IDE Dev (Build 201608040002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.74-b02, Java(TM) SE Runtime Environment, 1.8.0_74-b02
OS: Windows 8

User Comments:
zmirc: Editing java code in a Java file




Stacktrace: 
java.lang.IllegalArgumentException: Currently unsupported TypeKind: PACKAGE
   at org.netbeans.api.java.source.TypeMirrorHandle.create(TypeMirrorHandle.java:237)
   at org.netbeans.api.java.source.TypeMirrorHandle.create(TypeMirrorHandle.java:142)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.addExpressionFixes(IntroduceHint.java:382)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.computeError(IntroduceHint.java:423)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.run(IntroduceHint.java:244)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.run(IntroduceHint.java:144)
Comment 1 zmirc 2016-08-20 17:36:49 UTC
Created attachment 161729 [details]
stacktrace
Comment 2 IrianR 2016-08-31 13:21:34 UTC
Created attachment 161848 [details]
stacktrace

normal java editing (maven project)
Comment 3 IrianR 2016-09-01 09:27:34 UTC
Created attachment 161863 [details]
stacktrace

It seems this problem happens frequently when I select a fragment of code I just copy pasted from elsewhere, and in the new context this code no longer compiles.
Comment 4 alied 2016-09-06 16:00:43 UTC
Created attachment 161926 [details]
stacktrace

double-clicked on an identifier with errors.
Comment 5 alied 2016-09-06 16:03:43 UTC
Created attachment 161927 [details]
stacktrace

selected an identifier with an error. This keeps appearing over ad over again after the first occurence.
Comment 6 Exceptions Reporter 2016-09-08 14:30:47 UTC
Created attachment 161973 [details]
stacktrace

Copying text from editor
Comment 7 skygo 2016-09-09 14:09:49 UTC
Created attachment 161982 [details]
stacktrace

try to open hints error light on margin
Comment 8 Svata Dedic 2016-09-09 15:02:12 UTC
Will be fixed as jet-main#6e19cbab5fc2
Comment 9 Quality Engineering 2016-09-10 02:15:55 UTC
Integrated into 'main-silver', will be available in build *201609100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6e19cbab5fc2
User: Svata Dedic <sdedic@netbeans.org>
Log: #267653: filter out PACKAGE type as it indicates an error except for prefix of qualident