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 257040 - IllegalArgumentException: No classpath provided by task: org.netbeans.modules.java.hints.ui.ClassNameList$8@4eb22c88
Summary: IllegalArgumentException: No classpath provided by task: org.netbeans.modules...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-08 02:07 UTC by athompson
Modified: 2016-01-30 03:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 221560


Attachments
stacktrace (4.40 KB, text/plain)
2015-12-08 02:07 UTC, athompson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2015-12-08 02:07:28 UTC
Build: NetBeans IDE Dev (Build 201512060002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17
OS: Mac OS X

User Comments:
athompson: tried to add immutable class in "Constant naming convention" code hint




Stacktrace: 
java.lang.IllegalArgumentException: No classpath provided by task: org.netbeans.modules.java.hints.ui.ClassNameList$8@4eb22c88
   at org.netbeans.modules.java.source.parsing.JavacParser.init(JavacParser.java:331)
   at org.netbeans.modules.java.source.parsing.JavacParser.parseImpl(JavacParser.java:401)
   at org.netbeans.modules.java.source.parsing.JavacParser.parse(JavacParser.java:349)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:621)
   at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:377)
   at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:363)
Comment 1 athompson 2015-12-08 02:07:30 UTC
Created attachment 157707 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-12-08 08:23:00 UTC
Reassigning to java/Source. Please evaluate. Thank you.
Comment 3 Svata Dedic 2016-01-07 12:22:21 UTC
Should happen (only?) if hints are configured without java project opened, so the global path registry is empty. I'll use default platfomr's BCP + CP as a fallback.

Fixed in jet-main#77784ac21986
Comment 4 Quality Engineering 2016-01-30 03:32:09 UTC
Integrated into 'main-silver', will be available in build *201601300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/77784ac21986
User: Svata Dedic <sdedic@netbeans.org>
Log: #257040: default JavaPlatform is used for case GPR is empty (no project opened)