We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89084da commit 5820a2bCopy full SHA for 5820a2b
sources/net.sf.j2s.java.core/src/swingjs/JSUtil.java
@@ -804,11 +804,11 @@ public static Color getColorFromName(String c) {
804
805
/**
806
*
807
- * @param f anything with 秘bytes (File, JSPath)
+ * @param f anything with 秘bytes (File, JSPath) or URL._streamData
808
* @return
809
*/
810
public static byte[] getBytes(Object f) {
811
- return ((File) f).秘bytes;
+ return (f instanceof URL ? (byte[]) ((URL) f)._streamData : ((File) f).秘bytes);
812
}
813
814
@Override
0 commit comments