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 43669

Summary: Cannot run single file unless whole project is compilable
Product: java Reporter: pfelenda <pfelenda>
Component: UnsupportedAssignee: David Konecny <dkonecny>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P4    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41537    

Description pfelenda 2004-05-21 13:43:01 UTC
[trunk 200405201800], jdk1.4.2_03

Steps to reproduce:
- I open MyTestClass which is in project
- I compiled it (without errors)
- I try run it from menu Run|Run Other|Run
"MyTestClass"
-> The IDE start compilation of other class from
project ??? -> some errors appeared from these
classes -> the MyTestClass does not run.

Why is compiled these classes before launching my
class ? I can't run entire project, but only the 
specified class.
Comment 1 Jesse Glick 2004-05-21 16:24:05 UTC
Should probably depend on compile-single-file rather than compile?
Comment 2 pfelenda 2004-05-21 17:33:49 UTC
Yes
Comment 3 David Konecny 2004-05-25 12:04:32 UTC
Fixed in:
java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEActionProvider.java;
new revision: 1.13; previous revision: 1.12
java/j2seproject/src/org/netbeans/modules/java/j2seproject/resources/build-impl.xsl;
new revision: 1.12; previous revision: 1.11
Comment 4 pfelenda 2004-08-17 15:36:29 UTC
Verified in 4.0 beta 1. It is possible to run a class from projects with
broken sources.