Clone
Ondrej Chaloupka
committed
on 09 Aug 16
[JBTM-2730] Not using system default encoding but UTF-8
Fix of static analysis bug
21994 Dm: Dubious method used In org.jboss.narayana.osgi.… Show more
[JBTM-2730] Not using system default encoding but UTF-8

Fix of static analysis bug

21994 Dm: Dubious method used In org.jboss.narayana.osgi.jta.internal.ObjStoreBrowserImpl.ObjStoreBrowserImpl

(com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBrowser):

Found a call to a method which will perform a byte to String (or String

to byte) conversion, and will assume that the default platform encoding

is suitable)

Any conversion from byt and char should not use default platform

encoding. With default encoding code behaves differently depending

platform it runs on. Especially it's harmfull when data flows from one

platform to another.

Using UTF-8 as default.

Show less

master + 2 more