Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 47
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.


while (counter < 100)
---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, 01:45 AM   #2
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, 02:42 AM   #3
Senior Member
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Original Poster
Rep: Reputation: 47
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.


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 03:01 PM
Java compiler. Where to get? Arild2 Linux - Software 3 11-07-2004 12:56 PM
java compiler athenerx Programming 33 06-30-2004 04:21 PM
when ever i run a java gui on my redhat 9 it always dislays some warnings anjiie Programming 2 03-09-2004 02:50 PM
Java Compiler? Alinuxnoob Programming 9 02-15-2004 11:00 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:09 AM.

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