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.
When running a project with code coverage enabled, there are many of these exceptions. java.lang.IllegalStateException: You are trying to access file: emma.properties from the default package. Please see http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#default_package at org.netbeans.ProxyClassLoader.printDefaultPackageWarning(ProxyClassLoader.java:576) at org.netbeans.ProxyClassLoader.getResource(ProxyClassLoader.java:343) at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1214) at com.vladium.util.ResourceLoader.getResourceAsStream(ResourceLoader.java:103) at com.vladium.util.Property.getProperties(Property.java:256) at com.vladium.util.Property.getAppProperties(Property.java:116) at com.vladium.logging.Logger.<clinit>(Logger.java:569) at com.vladium.emma.data.DataFactory.mergeload(DataFactory.java:396) at com.vladium.emma.data.DataFactory.load(DataFactory.java:56) at org.netbeans.modules.coverage.data.local.CoverageDataFactory.getCoverageData(CoverageDataFactory.java:93) at org.netbeans.modules.coverage.actionperformers.ClassMarkupCoverage.run(ClassMarkupCoverage.java:93) at org.netbeans.modules.coverage.actionperformers.RefreshProjectOpenedEditors$Refresher.run(RefreshProjectOpenedEditors.java:132) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:300) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:210) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:200) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:195) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:187) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
emma.class and amma_run.class reside in default package. So I cannot fix the cause of this problem. I can only supress the warning at ProxyClassLoader.printDefaultPackageWarning() if Jesse permits. Jesse what is your opinion? Can I exclude the 'emma.properties' and 'emma_default.properties' from the warning like we do for 'log4j.properties', ... ?
You can. Please file a request for Emma devs to pick a better location for the properties file, though this might now be impossible for compatibility reasons. Perhaps it would make sense to suppress the warning for all *.properties due to the commonness of this convention (for better or worse)?
Fixed in web-main by: a16c2bd928a8
Integrated into 'main-golden', will be available in build *200904250201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a16c2bd928a8 User: Martin Schovanek <mschovanek@netbeans.org> Log: #163397 - IllegalStateException in code coverage