cancel
Showing results for 
Search instead for 
Did you mean: 

JLIN Errors

Former Member
0 Kudos

Hi Colleagues,

In my Code i am Facing some JLIN errors in the below code

byte[] encoded = com.sap.engine.lib.xml.util.BASE64Encoder.encode(source.getBytes());  	 
return (new String(encoded));

Here it is Throwing are throwing two PRIO 2 JLIN errors

for code in 1st line:

JLin [Prio 2] Internationalization: new String(byte[]) byte to char conversion using the runtime default encoding. Explicitly specify one of UTF-8, UTF-16, US-ASCII, ISO-8859-1, UTF-16BE, UTF-16LE encodings instead.

for Code in Line 2:

JLin [Prio 2] Internationalization: new String(byte[]) byte to char conversion using the runtime default encoding. Explicitly specify one of UTF-8, UTF-16, US-ASCII, ISO-8859-1, UTF-16BE, UTF-16LE encodings instead.

Could anyone please let me know how to proceed here?

Many Thanks & Best Regards

Swetha

Accepted Solutions (1)

Accepted Solutions (1)

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi Swetha

Just skip the JLin warnings. Nothing wrong with the code. If you want you can insert in the code JLin's instruction saying to suppress the warnings.

By the way, this is a wrong forum for such questions. Use Java Programming instead.

BR, Sergei

Answers (0)