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 174772 - Dollar-sign ($) in Class name not found
Summary: Dollar-sign ($) in Class name not found
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-16 18:36 UTC by pindatjuh
Modified: 2016-07-07 07:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pindatjuh 2009-10-16 18:36:06 UTC
A dollar-sign ($) inside the name of a Java class in a different package is not recognized by an import hint.

How to reproduce this issue: Create a Java Application Project. Create a new package "x". Create a class named "$Test".
Create a new package "x.y". Create a new class "Test" which extends $Test.

package x.y;
public class Test extends $Test {

A red curly line appears under $Test, with tooltip "Cannot find symbol symbol: class $Test". Then click on the lightbulb
in the margin. Only the option "Create class "$Test" in package x.y" is present.

Problem: There is not an option "Add import for x.$Test".

Work around: manually add "import x.$Test;" to the Java source.

Product Version: NetBeans IDE 6.7 (Build 200906241340)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows Vista version 6.0 running on x86; Cp1252; nl_NL (nb)
Userdir: C:\Users\[my username]\.netbeans\6.7

Thank you.
Comment 1 Martin Balin 2016-07-07 07:18:38 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss