Project

General

Profile

9859a.diff

Tomasz Domin, 03/31/2025 07:11 AM

Download (2.01 KB)

View differences:

new/src/com/goldencode/compile/InMemoryClass.java 2025-03-31 11:05:21 +0000
2 2
** Module   : InMemoryClass.java
3 3
** Abstract : in-memory class file
4 4
**
5
** Copyright (c) 2009, Golden Code Development Corporation.
5
** Copyright (c) 2009-2025, Golden Code Development Corporation.
6 6
**
7 7
** -#- -I- --Date-- -----------------------Description------------------------
8 8
** 001 GES 20090302 Provides an in-memory class file.
9
** 002 TJD 20250331 Fix for incorrect class URI under Windows
9 10
*/
10 11

  
11 12
/*
......
52 53
   public InMemoryClass(String name)
53 54
   {
54 55
      super(URI.create("string:///"                           +
55
                       name.replaceAll("\\.", File.separator) +
56
                       name.replaceAll("\\.", "/") +
56 57
                       Kind.CLASS.extension),
57 58
                       Kind.CLASS);
58 59
   }
new/src/com/goldencode/compile/InMemorySourceCode.java 2025-03-31 11:05:36 +0000
2 2
** Module   : InMemorySourceCode.java
3 3
** Abstract : in-memory Java source code
4 4
**
5
** Copyright (c) 2009, Golden Code Development Corporation.
5
** Copyright (c) 2009-2025, Golden Code Development Corporation.
6 6
**
7 7
** -#- -I- --Date-- -----------------------Description------------------------
8 8
** 001 GES 20090303 Provides in-memory Java source code.
9
** 002 TJD 20250331 Fix for bad source URI under Windows
9 10
*/
10 11

  
11 12
/*
......
57 58
   public InMemorySourceCode(String name, String source)
58 59
   {
59 60
      super(URI.create("string:///"                           +
60
                       name.replaceAll("\\.", File.separator) +
61
                       name.replaceAll("\\.", "/") +
61 62
                       Kind.SOURCE.extension),
62 63
                       Kind.SOURCE);
63 64
      this.source = source;