Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Compiler Warnings
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joey Goertzen  
View profile  
 More options Jan 30 2012, 12:42 pm
From: Joey Goertzen <joey.goert...@gmail.com>
Date: Mon, 30 Jan 2012 09:42:27 -0800 (PST)
Local: Mon, Jan 30 2012 12:42 pm
Subject: Compiler Warnings

I'm having trouble getting BlueJ to generate compiler warning messages.
I've tried several small programs that I think should have caused warnings
to be issued, but I only see the message: "Class compiled - no syntax
errors".

Is there a setting somewhere that enables/disables the display of compiler
warning messages?

I've been expecting to see the warnings in the same place that the compiler
errors are displayed.

Am I looking in the wrong spot?

Thanks for any assistance.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Davin McCall  
View profile  
 More options Jan 30 2012, 5:39 pm
From: Davin McCall <dav...@bluej.org>
Date: Tue, 31 Jan 2012 09:39:30 +1100
Local: Mon, Jan 30 2012 5:39 pm
Subject: Re: [BlueJ Discuss] Compiler Warnings

On 31/01/2012, at 4:42 AM, Joey Goertzen wrote:

> I'm having trouble getting BlueJ to generate compiler warning messages. I've tried several small programs that I think should have caused warnings to be issued, but I only see the message: "Class compiled - no syntax errors".

Hi Joey, could you give an example of one of the programs that you think should give a warning (and explain why it should give a warning / what warning it should give)?

> Is there a setting somewhere that enables/disables the display of compiler warning messages?

In the preferences there is an option to disable the 'raw type' warnings. Any other warnings should be displayed as usual
.

> I've been expecting to see the warnings in the same place that the compiler errors are displayed.

> Am I looking in the wrong spot?

Warnings are displayed in a separate dialog, which should appear when the warning is generated.

Davin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joey Goertzen  
View profile  
 More options Jan 31 2012, 1:28 pm
From: Joey Goertzen <joey.goert...@gmail.com>
Date: Tue, 31 Jan 2012 10:28:03 -0800 (PST)
Local: Tues, Jan 31 2012 1:28 pm
Subject: Re: Compiler Warnings
Thanks for the response Davin.

An example? Sure thing:

public class Example
{
    public static void main()
    {
        int a = 5;
        a = a; //this should generate a warning similar to the
following: Assignment has no effect (e.g. 'x = x')
    }

}

I am using the following website as a reference for compiler warnings:
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc....

On Jan 30, 3:39 pm, Davin McCall <dav...@bluej.org> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Todd O'Bryan  
View profile  
 More options Jan 31 2012, 4:16 pm
From: "Todd O'Bryan" <toddobr...@gmail.com>
Date: Tue, 31 Jan 2012 16:16:56 -0500
Local: Tues, Jan 31 2012 4:16 pm
Subject: Re: [BlueJ Discuss] Re: Compiler Warnings
The Eclipse compiler is much more user-friendly than (the standard)
javac. I'm pretty sure BlueJ uses the javac provided with a JDK, but
it would be cool if you could download the Eclipse compiler and use it
instead.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joey Goertzen  
View profile  
 More options Feb 1 2012, 10:41 am
From: Joey Goertzen <joey.goert...@gmail.com>
Date: Wed, 1 Feb 2012 07:41:13 -0800 (PST)
Local: Wed, Feb 1 2012 10:41 am
Subject: Re: Compiler Warnings
Are you saying that BlueJ will only display warnings that are picked
up by the standard compiler?

If that is the case, would I therefore have to modify settings
associated with javac to enable display of the warnings I need?

On Jan 31, 2:16 pm, "Todd O'Bryan" <toddobr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Utting  
View profile  
 More options Feb 1 2012, 11:54 am
From: Ian Utting <I.A.Utt...@kent.ac.uk>
Date: Wed, 01 Feb 2012 16:54:31 +0000
Local: Wed, Feb 1 2012 11:54 am
Subject: Re: [BlueJ Discuss] Re: Compiler Warnings

Joey Goertzen wrote:
> Are you saying that BlueJ will only display warnings that are picked
> up by the standard compiler?

BlueJ only reports warnings generated by the compiler it is using, so if
you could convince it to use another compiler (like the Eclipse Compiler
for Java), then you would see whatever warnings that one generated.

It looks unlikely that ECJ would be a drop-in replacement for javac.

You might like to look at the Findbugs plugin for BlueJ. It doesn't look
as though it's seen any maintenance love for a while, but if you want
warnings about your code, it'll give you plenty!

Ian.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joey Goertzen  
View profile  
 More options Feb 5 2012, 12:06 am
From: Joey Goertzen <joey.goert...@gmail.com>
Date: Sat, 4 Feb 2012 21:06:48 -0800 (PST)
Local: Sun, Feb 5 2012 12:06 am
Subject: Re: Compiler Warnings
Is it a fairly difficult process to "convince" BlueJ to use a
different compiler? (ie. Eclipse)

Any well established tutorials available?

On Feb 1, 9:54 am, Ian Utting <I.A.Utt...@kent.ac.uk> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Davin McCall  
View profile  
 More options Feb 5 2012, 11:49 pm
From: Davin McCall <dav...@bluej.org>
Date: Mon, 6 Feb 2012 15:49:56 +1100
Local: Sun, Feb 5 2012 11:49 pm
Subject: Re: [BlueJ Discuss] Re: Compiler Warnings
On 05/02/2012, at 4:06 PM, Joey Goertzen wrote:

> Is it a fairly difficult process to "convince" BlueJ to use a
> different compiler? (ie. Eclipse)

Yes. There has been no support for external compilers for some time, so it would require modifying the BlueJ source.

> Any well established tutorials available?

No. Nobody has done it with recent versions of BlueJ, as far as I am aware. But of course the old "just ask Google" adage applies :)

Davin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »