Examples of Entries for the First Text Area

These fictitious examples show how to fill out the "Description and source diffs" text area in the J2SE fix submission page. You can reach it through the Submit a Fix page.

Example 1: Fix for an existing JDC bug. Only bug number, diff baseline, and diff output are necessary.

Bug number : 6202020
Bug Description : Off by one error in Gizmo widget code.
Diff Baseline : JDK6 b13.
Diff :
--- src/share/classes/com/sun/gizmo/Gizmo.java  2005-01-21 13:10:09.000000000 -0800
+++ src/share/classes/com/sun/gizmo/Gizmo2.java 2005-01-21 13:11:38.000000000 -0800
@@ -5,7 +5,7 @@
   
  void defectiveCode() {
     
-    index = numWidgets;
+    index = numWidgets + 1;
 
  }

Example 2: Fix for a new bug discovered and filed by submitter, where only the incident number is available. Only incident number, diff baseline, and diff output are necessary.

Incident Number : 2898271
Bug Description : Off by one error in Gizmo widget code.
Diff Baseline : JDK 6 b13.
Diff :
--- src/share/classes/com/sun/gizmo/Gizmo.java  2005-01-21 13:10:09.000000000 -0800
+++ src/share/classes/com/sun/gizmo/Gizmo2.java 2005-01-21 13:11:38.000000000 -0800
@@ -5,7 +5,7 @@
   
  void defectiveCode() {
     
-    index = numWidgets;
+    index = numWidgets + 1;
 
  }

Example 3: Fix for a new bug discovered but not filed by submitter. In this case we need all relevant information so that we can file the bug for the submitter.

Bug Description : Off by one error in Gizmo widget code.
Subset of Releases affected : 1.5.0, JDK 6 b13.
Platforms affected : Windows 2000, Windows XP
Test case : See Test case section.
Diff baseline : JDK 6 b13
Diff :
--- src/share/classes/com/sun/gizmo/Gizmo.java  2005-01-21 13:10:09.000000000 -0800
+++ src/share/classes/com/sun/gizmo/Gizmo2.java 2005-01-21 13:11:38.000000000 -0800
@@ -5,7 +5,7 @@
   
  void defectiveCode() {
     
-    index = numWidgets;
+    index = numWidgets + 1;
 
  }