Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#545 AOP framework: URL comparision problem in compiler

open
nobody
None
5
2004-11-30
2004-11-30
No

Hi!

If the path name of classes to be compiled by the AOP
framework's stand-alone compiler contains special
characters (e.g. spaces), the comparison in

public void compileFile(File file)

(class org.jboss.aop.standalone.Compiler) will fail.
The compiler says something like:

[warning] Trying to compile C:\Dokumente und
Einstellungen\kriegaex\Eigene
Dateien\java-src\JBoss_AOP\class\BFD\Logging.class and
found it also within
file:/C:/Dokumente%20und%20Einstellungen/kriegaex/Eigene%20Dateien/java-src/JBoss_AOP/class/BFD/Logging.class
will not proceed.

As the JDK documentation says, special characters will
not be escaped in File.toURL(), so it recommends to use
toURI().toURL() instead. That's what I did, as can be
seen in the patch I am submitting.

Regards

Alexander Kriegisch
Principal Presales Consultant

---------------------------------------------------------
COI GmbH Phone +49 9132 82 4281
Erlanger Straße 62 Mobile +49 172 8 65 91 90
91074 Herzogenaurach Fax +49 9132 82 4959
http://www.coi.de
mailto:Alexander.Kriegisch@coi.de
---------------------------------------------------------
COI - Solutions for Documents
---------------------------------------------------------

Discussion

  • Bugfix patch for org.jboss.aop.standalone.Compiler

     
    Attachments
  • Logged In: YES
    user_id=911860
    Originator: YES

    Does anybody process open bugs? This one has not even commented for more than two years,