BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-24-2011, 04:08 AM   #1 (permalink)
New Member
 
Join Date: Nov 2011
Model: 8530
PIN: N/A
Carrier: MTS
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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

ELO B3 15in All-in-one 2GB RAM Restaurant Touch Terminal WiNDOWS 7 with Xera POS
$1990.0
ELO B3 15in All-in-one 2GB RAM Restaurant Touch Terminal WiNDOWS 7 with Xera POS pictureDuff-Norton RAM-PAC HP-520-2 TWO SPEED 10000 PSI HYDRAULIC HAND PUMP
$999.0
Duff-Norton RAM-PAC HP-520-2 TWO SPEED 10000 PSI HYDRAULIC HAND PUMP pictureLenel DVC-ST Pentium 4 3.0GHz 1GB DDR3 RAM Digital Video Recorder Storage System
$349.99
Lenel DVC-ST Pentium 4 3.0GHz 1GB DDR3 RAM Digital Video Recorder Storage System pictureAMCC Applied Micro MPC8260 256MB RAM DDR2 CPU Card Development Evaluation Board
$88.99
AMCC Applied Micro MPC8260 256MB RAM DDR2 CPU Card Development Evaluation Board pictureAMCC Applied Micro 440GX 256MB DDR3 RAM PCB Evaluation Control Board
$223.99
AMCC Applied Micro 440GX 256MB DDR3 RAM PCB Evaluation Control Board picture






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