--
You received this message because you are subscribed to the Google Groups "j2objc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If you look at the actual source, it happens parsing a ternary operator, I *think* when the second and/or third argument is a string, but didn't do a full survey. It's always been a '?:' operator, though.
I was thinking this was maybe related to JAVAC vs JDT, but the only way that would be possible on a clean build on your end would be if the environment variable J2OBJC_FRONT_END was set, AFAIK. Trying that. If that fails, then I'm guessing it has to be some combo of java version or some other setting.
Unless something is way off, though, the java file parsing fails, so it shouldn't be related to xcode.
Will update with progress, if any. Cross fingers...
OK, update. Source translate got much further, but objc compile failed on sun/misc/Cleaner.m. Hmm. Digging.
BTW, I generally run 'make -j8 frameworks'. I've been playing in a fork for a while, but clean j2objc master builds were working with that command as of several weeks ago, as far as I remember.
Kevins-MBP:~ kgalligan$ echo "JAVA_HOME=${JAVA_HOME}" && echo -n java_home= && /usr/libexec/java_home
JAVA_HOME=
java_home=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
Unless the jdk reinstall did something to the env vars, though, I think it was simply updating jdk version.
building jre_emul.jar
building jre_emul-src.jar
translating jre_emul sources
android/libcore/luni/src/main/java/java/net/URL.java:515: error: method toExternalForm in class java.net.URLStreamHandler cannot be applied to given types;
return new URI(streamHandler.toExternalForm(this, true));
^
required: java.net.URL
found: java.net.URL,boolean
reason: actual and formal argument lists differ in length
android/libcore/luni/src/main/java/java/net/URL.java:571: error: cannot find symbol
return URI.getEffectivePort(protocol, port);
^
symbol: method getEffectivePort(java.lang.String,int)
location: class java.net.URI
android/libcore/luni/src/main/java/java/io/ObjectInputStream.java:945: error: incompatible types: java.lang.String cannot be converted to java.lang.Class<?>
ObjectStreamField f = new ObjectStreamField(classSig, fieldName);
^
android/libcore/luni/src/main/java/java/io/ObjectInputStream.java:1101: error: cannot find symbol
Class<?> type = fieldDesc.getTypeInternal();
^
symbol: method getTypeInternal()
location: variable fieldDesc of type java.io.ObjectStreamField
android/libcore/luni/src/main/java/java/io/ObjectInputStream.java:1151: error: cannot find symbol
Class<?> fieldType = localFieldDesc.getTypeInternal();
^
symbol: method getTypeInternal()
location: variable localFieldDesc of type java.io.ObjectStreamField
android/libcore/luni/src/main/java/java/io/ObjectInputStream.java:1683: error: cannot find symbol
element.resolve(loader);
^
symbol: method resolve(java.lang.ClassLoader)
location: variable element of type java.io.ObjectStreamField
android/libcore/luni/src/main/java/java/io/ObjectInputStream.java:1940: error: cannot find symbol
Object result = input.decodeUTF((int) length);
^
symbol: method decodeUTF(int)
location: variable input of type java.io.DataInputStream
android/libcore/luni/src/main/java/java/io/ObjectStreamClass.java:368: error: offset has private access in java.io.ObjectStreamField
_fields[i].offset = primOffset;
^
android/libcore/luni/src/main/java/java/io/ObjectStreamClass.java:371: error: offset has private access in java.io.ObjectStreamField
_fields[i].offset = objectOffset++;
^
android/libcore/luni/src/main/java/java/io/ObjectStreamClass.java:874: error: cannot find symbol
loadField.setUnshared(field.isUnshared());
^
symbol: method setUnshared(boolean)
location: variable loadField of type java.io.ObjectStreamField
android/libcore/luni/src/main/java/java/util/regex/Matcher.java:241: error: cannot find symbol
address = openImpl(pattern.address);
^
symbol: variable address
location: variable pattern of type java.util.regex.Pattern
Classes/java/lang/System.java:435: error: cannot find symbol
return Console.getConsole();
^
symbol: method getConsole()
location: class java.io.Console
make[1]: *** [/Users/daniel/bc/j2objc/jre_emul/build_result/Classes/.translate_mark_jre_emul] Error 12
make: *** [jre_emul_dist] Error 2
--