Misleading documentation for class java.nio.charset.spi.CharsetProvider (original) (raw)
Christian Schulte cs at schulte.it
Thu Dec 6 17:26:10 UTC 2012
- Previous message: signatures that are recorded for default methods
- Next message: Misleading documentation for class java.nio.charset.spi.CharsetProvider
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
I am not sure if this is the correct mailing list to send this mail to. Please apologize any inconvenience caused.
The JDK 7 documentation of class java.nio.charset.spi.CharsetProvider states the following:
[...] Charset providers are looked up via the current thread's context class loader. [...]
Looking at method 'private static Iterator providers()' of class 'java.nio.charset.Charset', the above documentation seems incorrect since that method uses the system class loader.
ClassLoader cl = ClassLoader.getSystemClassLoader(); ServiceLoader sl = ServiceLoader.load(CharsetProvider.class, cl);
Is this intended ?
Regards,
-- Christian Schulte
- Previous message: signatures that are recorded for default methods
- Next message: Misleading documentation for class java.nio.charset.spi.CharsetProvider
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]