Bugs

From Java.Inquisition

Jump to: navigation, search

Please report bugs below:

Contents

[edit] Unresolved

[edit] Links in the About dialog do not work

Test case

  1. Start Java.Inquisitor 0.14 via Webstart
  2. Invoke 'About|About...'
  3. Try clicking on a link (blue color, underlined)

Observation

  • The URL is not opened. I'm using Windows XP SP2 and Java 1.6 Update 6. Default browser is Mozilla Firefox 2.0.0.12 and it is running at the moment of clicking the links.

[edit] Problems with changing themes via 'Look and Feel' menu

Using Java.Inquisitor 0.14, I have noticed a problem with the 'Look and Feel' menu.

Test case

  1. Start Java.Inquisitor 0.14 via Webstart
  2. Invoke 'Look and Feel|Squareness'
  3. Invoke 'Look and Feel|Metal'

Expectation

  • Choosing the 'Metal' menu item results in a change of the widget style to the classical Java metal style.

Observation

  • The resulting style is a mixture between metal and squareness.


Yeah, this bug can be quite annoying -- particularly on Linux where Squareness is selected as the default Look and Feel for Inquisition. Changing look and feel dynamically in a Swing application is known to be a bit of a dodgy proposition. I'm not sure what the correct fix is -- short of deactivating the look and feel menu, or removing the Squareness option. The thing is, Squareness is the best option on Linux, because the GTK+ look and feel doesn't do the colouration of text fields correctly in the questions, and Metal looks...well, always terrible. Matt 22:23, 7 July 2008 (BST)
Can you restart the application after a change, or at least prompt a restart? You can change the theme in the main window only anyway, and there's not much you can do there in terms of 'losing work'. -Ced

[edit] Drag and Drop answers in Java.Inquisitor 0.12

Frequently, but not always, Drag and Drop answers are rated INCORRECT even though the example solution shows the same answers as I chose. I have not figured out a better logic to this.

Many thanks reporting the bug; I'm having trouble reproducing it on my machine, though -- I don't suppose you would be able to grab a screenshot of an instance of this happening, or remember any particular question(s) it occurred on? Cheers. Matt 20:29, 24 June 2007 (BST)
Sure I can: Screenshot1, Screenshot2 - its from the Inqusition SCJP 5 hashCode+equals test (BTW: your d&d behavior is really smooth and clear in comparision to the fiddly behavior of Whizlabs d&d) User:mhoennig 12:22, 27 June 2007 (CEST)
It happens with Java5, but works with Java6. Thus: very low prio. User:mhoennig 00:41, 28 June 2007 (CEST)

[edit] Test: SCJP 5.0 themuppeteer Quiz

[edit] Question

 public class Testing123 {
   public static void main(String... args)
   {
       Set t = new TreeSet();
       t.add("a");t.add("b");t.add(666);
       for(Object o:t)System.out.print(o);
   }
 }

Answer claimed to be correct: doesn't compile. In fact it Compiles well (I have verified this), instead a runtime exception because at runtime an Integer is added to a TreeSet of Strings. Collections with "Tree" in the name are sorted meaning that all objects added to the Collection must be compareable - but Integer and String are not comparable (General Rule of Thumb: Objects which are not related (instanceof) are not comparable).


[edit] Test: SCJP 5.0 themuppeteer Quiz

[edit] Question

 public class Testing123 {
   public static void main(String... args)
   {
       Number[]na = new Integer[3];
       System.out.println(na[0]);
   }
 }

Answer claimed to be correct: compilation error In fact the code compiles correct and prints null.


BTW: Thanks for this great program it is better than the "offical" testing demo software from prometrix which came along with my book. Oh, and of course thanks to all the peopöe who have contributed tests :o).

[edit] Resolved

[edit] Correction for John Meyers SCJP 5 mock exam

Question:

// Line 1:
list < ? super String> list = new ArrayList <String>> (); 
 
// Line 2:
list.add(new Object()); 

Drag and Drop the following options over Line 1 and Line 2. Drag the relevant fragment over the line to indicate whether or not the Line will not compile, or if will compile, whether it will throw Exceptions.

Correction: In Line 1 it should read List instead of list - than the answer defined as correct "Compiles with no runtime exception" is correct ...

Thanks; this should be fixed for the next release. I've let John know as well. Matt 20:35, 24 June 2007 (BST)

[edit] GTK+ theme

JTextPane background should be white; textbox background doesn't change colour</s> — bug in Java SE < 7, see [1].

Personal tools