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 226170 - IllegalArgumentException at org.netbeans.modules.java.source.usages.ClassFileUtil.encodeType
Summary: IllegalArgumentException at org.netbeans.modules.java.source.usages.ClassFile...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-15 12:23 UTC by mkroll
Modified: 2013-02-19 01:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 194865


Attachments
stacktrace (3.92 KB, text/plain)
2013-02-15 12:23 UTC, mkroll
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mkroll 2013-02-15 12:23:27 UTC
Build: NetBeans IDE Dev (Build 201302132300)
VM: Java HotSpot(TM) Client VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_13-b20
OS: Windows 7

User Comments:
maks_t34: TypeElement typeElement = elementHandle.resolve(compilationInfo);
            if (typeElement != null) {
                typeElement.accept(new <cursor here>, null);

Use code completion and move the selection to the AbstractElementVisitor7, ElementKindVisitor7, ElementScaner7 or SimpleElementVisitor7 option.

Note: project JDK is 1.6. When project JDK is changed to 1.7 the issue do not reproduces.




Stacktrace: 
java.lang.IllegalArgumentException
   at org.netbeans.modules.java.source.usages.ClassFileUtil.encodeType(ClassFileUtil.java:317)
   at org.netbeans.modules.java.source.usages.ClassFileUtil.createFieldDescriptor(ClassFileUtil.java:174)
   at org.netbeans.api.java.source.ElementHandle.createImpl(ElementHandle.java:454)
   at org.netbeans.api.java.source.ElementHandle.create(ElementHandle.java:388)
   at org.netbeans.api.java.source.TreePathHandle.create(TreePathHandle.java:258)
   at org.netbeans.modules.java.navigation.BreadCrumbsNodeImpl.createBreadcrumbs(BreadCrumbsNodeImpl.java:181)
Comment 1 mkroll 2013-02-15 12:23:29 UTC
Created attachment 131428 [details]
stacktrace
Comment 2 Tomas Zezula 2013-02-18 10:52:16 UTC
The CFU.encodeType() called with wrong argument.
Added logging: 12209a7e2057
Comment 3 Quality Engineering 2013-02-19 01:51:36 UTC
Integrated into 'main-golden', will be available in build *201302182300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/12209a7e2057
User: Tomas Zezula <tzezula@netbeans.org>
Log: #226170:IllegalArgumentException at org.netbeans.modules.java.source.usages.ClassFileUtil.encodeType