BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 11-24-2011, 04:08 AM   #1
RachnaDahiya
New Member
 
Join Date: Nov 2011
Model: 8530
PIN: N/A
Carrier: MTS
Posts: 1
Default Preprocess the whole class

Please Login to Remove!

I have defined an ability on the top of a class so that during compilation, the whole class does not compile(if that ability is not defined).
But, I am getting compilation errors while doing that.
The case is like this:

//#ifdef Ability
class A {
}
//#endif

//#ifdef Ability
class B {
A a = new A();
}
//#endif

I am getting error in class B -> cannot find symbol : class A.
While both the classes should not even compile as the ability is not defined.
Please help if I am wrong somewhere...
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads for: Preprocess the whole class
Thread Thread Starter Forum Replies Last Post
Properties/Methods of Parent Class not available to Child Class? doni49 Developer Forum 3 10-22-2009 05:45 PM
persistable object at class level souhail Developer Forum 2 06-15-2009 03:32 AM
Big speed difference between Class 2 and Class 6 16GB microSDHC? jbollyn Hardware & Accessories 6 04-20-2009 09:29 PM
Inner class referencing. skynetchris Developer Forum 1 07-03-2008 02:44 AM
Adding a class to another class priyank Developer Forum 2 09-29-2006 10:30 AM


6.3V 10V 16V 25V 35V 50V 100V 400V SMD Aluminum Electrolytic Capacitor 1-1000 UF picture

6.3V 10V 16V 25V 35V 50V 100V 400V SMD Aluminum Electrolytic Capacitor 1-1000 UF

$155.59



CBB61 250V  Capacitor 2 wires 1/2/3/3.5/4/5/6/7/8/9/10/12/15/18/20/24/25/30 UF picture

CBB61 250V Capacitor 2 wires 1/2/3/3.5/4/5/6/7/8/9/10/12/15/18/20/24/25/30 UF

$129.95



45/5 MFD ±5% Dual Run Capacitor 370 450 VAC CBB65 AC Motor HVAC 45+5 uF Fan 10pk picture

45/5 MFD ±5% Dual Run Capacitor 370 450 VAC CBB65 AC Motor HVAC 45+5 uF Fan 10pk

$85.99



5pc Radial Electrolytic Capacitor 250V 100V 50V 25V 16V 0.22uF-4700uF 10000uF picture

5pc Radial Electrolytic Capacitor 250V 100V 50V 25V 16V 0.22uF-4700uF 10000uF

$27.99



	 Polyester Film Capacitor 1NF -3.3uF 100V 250V 400V 630V 1600V CBB/CL Capacitor picture

Polyester Film Capacitor 1NF -3.3uF 100V 250V 400V 630V 1600V CBB/CL Capacitor

$80.89



CBB61 250V  Capacitor 2 wires 1/2/3/3.5/4/5/6/7/8/9/10/12/15/18/20/24/25/30 UF picture

CBB61 250V Capacitor 2 wires 1/2/3/3.5/4/5/6/7/8/9/10/12/15/18/20/24/25/30 UF

$53.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.