Issue Details (XML | Word | Printable)

Key: DERBY-3560
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Kathey Marsden
Reporter: Kathey Marsden
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

build failure: Error running ${jdk16}/bin/javac compiler if jdk16 is not set on 10.3

Created: 20/Mar/08 06:29 PM   Updated: 30/Jun/09 03:55 PM
Return to search
Component/s: Build tools
Affects Version/s: 10.3.3.0
Fix Version/s: 10.3.3.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works derby-3560_diff.txt 2008-03-20 07:54 PM Kathey Marsden 1 kB

Bug behavior facts: Regression
Resolution Date: 21/Mar/08 03:40 PM


 Description  « Hide
Bryan reported this issue after the change to print thread dumps on 10.3 with stress.multi when he didn't have jdk16 set. The build of ThreadDump should not occur if jdk16 is not set.

/home2/bpendleton/src/derby/10_3/10.3/java/testing/build.xml:62: The following error occurred while executing this line:
/home2/bpendleton/src/derby/10_3/10.3/java/testing/org/apache/derbyTesting/functionTests/util/build.xml:104: Error running ${jdk16}/bin/javac compiler


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Kathey Marsden added a comment - 20/Mar/08 07:54 PM
Attached is a patch to fix this issue. It only builds the ThreadDump class if jdk16 is set. This means that for 10.3 if the class wasn't built and stress.multi tries to dump stack traces, because the test failed to shutdown the threads, the stress.log may print a ClassNotFoundException instead. With this patch, on 10.3, you will get stack traces only if both jdk16 was set when you build and you run with jdk15 or higher.

trunk and 10.4 do not have the jdk16 build requirement because we have and can use ${java15compile.classpath} there.



Kathey Marsden made changes - 20/Mar/08 07:54 PM
Field Original Value New Value
Attachment derby-3560_diff.txt [ 12378340 ]
Repository Revision Date User Message
ASF #639672 Fri Mar 21 15:39:06 UTC 2008 kmarsden DERBY-3560 build failure: Error running ${jdk16}/bin/javac compiler if jdk16 is not set on 10.3

Avoid build of ThreadDump if jdk16 is not set.
Files Changed
MODIFY /db/derby/code/branches/10.3/java/testing/org/apache/derbyTesting/functionTests/util/build.xml

Kathey Marsden added a comment - 21/Mar/08 03:40 PM
Committed patch to 10.3. On 10.3 thread dumps will only print if jdk16 is set during build.



Kathey Marsden made changes - 21/Mar/08 03:40 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Kathey Marsden made changes - 21/Mar/08 05:40 PM
Fix Version/s 10.3.2.2 [ 12312885 ]
Kathey Marsden made changes - 21/Mar/08 05:44 PM
Status Resolved [ 5 ] Closed [ 6 ]
Dag H. Wanvik made changes - 30/Jun/09 03:55 PM
Bug behavior facts [Regression]