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 76851 - Attempts to read resources from default package
Summary: Attempts to read resources from default package
Status: RESOLVED WONTFIX
Alias: None
Product: contrib
Classification: Unclassified
Component: Jackpot (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: _ tball
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-25 12:01 UTC by _ rkubacki
Modified: 2010-04-27 18:41 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 _ rkubacki 2006-05-25 12:01:51 UTC
IDE dev build from May 22, jackpot modules from AU
        org.netbeans.jackpot [1.4.4 4 060514]
        org.netbeans.modules.jackpot/1 [1.4.4 4 060514]
        org.netbeans.modules.jackpot.rules [1.2.3.3 3 060509]

After I tried to run jackpot on my project my log file contains following logs
about read requests:

INFO [stderr]: You are trying to access file: Unnecessary_casts-en.panel from
the default package.
INFO [stderr]: Please see
http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#default_package
INFO [stderr]: You are trying to access file: Unnecessary_casts.panel from the
default package.
INFO [stderr]: Please see
http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#default_package
Comment 1 _ tball 2006-05-25 15:43:25 UTC
As the JLS 7.7 states (referred to by the error message), it is okay to use the
default package if you isolate references using a custom classloader, which
Jackpot's rule file compiler does.  The problem causing the error message is
that because there isn't a localized options panel for the query class (rule
files don't have options, at least not yet), the lookup is forwarded to the
module's classloader where it gets reported.  I will fix the rule file
compiler's classloader to instead fail when the resource isn't available.
Comment 2 _ rkubacki 2006-05-25 17:37:18 UTC
From JLS 7.4.2: Unnamed packages are provided by the Java platform principally
for convenience when developing small or temporary applications or when just
beginning development. ;-)

My understanding is that you're going to skip delegation to parent CL for these
resources and only use your custom CL to locate them. That sounds fine.
Comment 3 Jesse Glick 2010-04-27 18:41:12 UTC
The old Jackpot module is no longer maintained. There is a rewrite in progress at: http://bitbucket.org/jlahoda/jackpot30/wiki/Home