JDK-6834236 : (file) test/java/nio/file/Files/content_type.sh fails on Fedora 9
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2009-04-25
  • Updated: 2010-04-02
  • Resolved: 2009-07-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Description
TEST: java/nio/file/Files/content_type.sh
JDK under test: (/tmp/jprt/P1/T/090708.ab23780/testproduct/linux_i586_2.6-product)
java version "1.7.0-2009-04-25-090708.ab23780.jdk"
Java(TM) SE Runtime Environment (build 1.7.0-2009-04-25-090708.ab23780.jdk-jprtadm_2009_04_25_07_39-b00)
Java HotSpot(TM) Server VM (build 16.0-b01, mixed mode)

ACTION: build -- Passed. Build successful
REASON: User specified action: run build ContentType SimpleFileTypeDetector 
TIME:   0.65 seconds
messages:
command: build ContentType SimpleFileTypeDetector
reason: User specified action: run build ContentType SimpleFileTypeDetector 
elapsed time (seconds): 0.65

ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME:   0.65 seconds
messages:
command: compile /tmp/jprt/P1/T/090708.ab23780/source/test/java/nio/file/Files/ContentType.java /tmp/jprt/P1/T/090708.ab23780/source/test/java/nio/file/Files/SimpleFileTypeDetector.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.65
STDOUT:
STDERR:

ACTION: shell -- Failed. Execution failed: exit code 1
REASON: User specified action: run shell content_type.sh 
TIME:   0.178 seconds
messages:
command: shell content_type.sh []
reason: User specified action: run shell content_type.sh 
elapsed time (seconds): 0.178
STDOUT:

probe /tmp/foo1052103990546151341.html...
probe /tmp/unknown5946721225896916726unknown-file-type-789...
Exception in thread "main" java.lang.RuntimeException: /tmp/unknown5946721225896916726unknown-file-type-789 should not be recognized as:text/plain
	at ContentType.main(ContentType.java:72)

1 test(s) failed
STDERR:

TEST RESULT: Failed. Execution failed: exit code 1

Comments
EVALUATION This test was updated as part of the re-sync of the file system API in jdk7 m4.
27-07-2009

EVALUATION Tests assumes that the MIME type of a strange file will be detected and so the default FileTypeDetector will return null. It's a bogus sub-test and should be removed. Also the test no longer needs to be run by a script so that can be removed and the test tag moved to ContentType.java.
25-04-2009