LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-08-2004, 10:58 PM   #1
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 46
java compiler warnings


I was wondering if anyone knew how to make a compiler warning. for instance every once in a while I need to hardcode something for testing that I plan to change later. I comment it so that I cans can through later for a specific type of comment, but I want to go further, I want to add my own compiler warnings when it comes across a s spot so that I will be double sure to go back later and fix it.

example:

while (counter < 100)
{
counter++;
---issue compiler warning saying: Fix me line # ___ you need to add stuff to the loop, incomplete.
}

oh btw, this is java.
 
Old 05-09-2004, 12:45 AM   #2
vdogvictor
Member
 
Registered: Feb 2004
Distribution: Arch
Posts: 498

Rep: Reputation: 31
it would probably be a lot easier to add a

System.out.println("hey I need to fix this loop");
 
Old 05-09-2004, 01:42 AM   #3
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Original Poster
Rep: Reputation: 46
perhapse, but I want to see the warnign when I compile, not when I run it cause I have a lot of other debug output to sort through and in some places it would cause the message to be displayed a thousands times even if I put it before the loop (were it for a loop) cause I have to call some function about 1000 times (making an rpg, already have a basic one going, adapting it now to be larger and more featured) on a map of 100 tiles by 100 tiles you run several functions 1000 times per turn.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with java warnings Hockeyfan Programming 1 07-22-2005 02:01 PM
Java compiler. Where to get? Arild2 Linux - Software 3 11-07-2004 11:56 AM
java compiler athenerx Programming 33 06-30-2004 03:21 PM
when ever i run a java gui on my redhat 9 it always dislays some warnings anjiie Programming 2 03-09-2004 01:50 PM
Java Compiler? Alinuxnoob Programming 9 02-15-2004 10:00 PM


All times are GMT -5. The time now is 11:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration