ws-addressing-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ivanov (JIRA)" <>
Subject [jira] Created: (ADDR-12) should pay attention to system file separator
Date Thu, 26 Jan 2006 07:56:09 GMT should pay attention to system file separator

         Key: ADDR-12
     Project: Addressing
        Type: Bug
    Reporter: Vladimir Ivanov should pay attention to system file separator. For example, on Windows
file separator is \, not /, so /* shouldn't imply /<anything>

Code to reproduce:
public class test29 { 
	public static void main(String args[]) throws Exception { 
        	System.out.println(new FilePermission("C:/*", "read").implies(new FilePermission("C:/a",
"read")) ? "FAILED" : "PASSED"); 

Steps to Reproduce: 
1. Build Harmony (check-out on 2006-01-25) j2se subset as described in README.txt. 
2. Compile using BEA 1.4 javac 
> javac -d . 
3. Run java using compatible VM (J9) 
> java -showversion test29

C:\tmp\tmp17>C:\harmony\trunk\deploy\jre\bin\java -showversion test29
java version 1.4.2 (subset)

(c) Copyright 1991, 2005 The Apache Software Foundation or its licensors, as applicable.

C:\tmp\tmp17>C:\jrockit-j2sdk1.4.2_04\bin\java.exe -showversion test29
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
BEA WebLogic JRockit(TM) 1.4.2_04 JVM  (build ari-31788-20040616-1132-win-ia32, Native Threads,
GC strategy: parallel)



junit test:
------------------------ -------------------------------------------------
import junit.framework.*; 
public class FilePermissionTest extends TestCase { 
    public void testFile_String() { 
        assertFalse("/ work as file separator", new FilePermission("C:/*", "read").implies(new
FilePermission("C:/a", "read"))); 

   public static void main(String[] args) {; 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message