Closed GoogleCodeExporter closed 8 years ago
Original comment by shai.almog
on 23 Jan 2015 at 8:47
The problem is not related to Mirah. You can create a datamapper subclass in
java (you don't need mirah at all), and it will fail the same way. I'll do
some investigating.
Original comment by st...@weblite.ca
on 23 Jan 2015 at 3:07
I have narrowed it down to a minimal example that doesn't involve the
DataMapper library or mirah at all.
If you add the following to a hello world app, it will fail to build:
Class cls = Short[].class;
The error will be something like:
/Applications/Xcode6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -Wno-trigraphs -fpascal-strings -O3 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wno-int-conversion -Wbool-conversion -Wno-enum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=6.0 -iquote /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dist/build/DMTest.build/Release-iphoneos/DMTest.build/DMTest-generated-files.hmap -I/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dist/build/DMTest.build/Release-iphoneos/DMTest.build/DMTest-own-target-headers.hmap -I/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dist/build/DMTest.build/Release-iphoneos/DMTest.build/DMTest-all-target-headers.hmap -iquote /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dist/build/DMTest.build/Release-iphoneos/DMTest.build/DMTest-project-headers.hmap -I/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dist/build/Release-iphoneos/include -I/Applications/Xcode6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dist/build/DMTest.build/Release-iphoneos/DMTest.build/DerivedSources/armv7 -I/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dist/build/DMTest.build/Release-iphoneos/DMTest.build/DerivedSources -F/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dist/build/Release-iphoneos -include /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/C/com.apple.DeveloperTools/6.0.1-6A317/Xcode/SharedPrecompiledHeaders/DMTest-Prefix-cozgqmybbchgzpggnhjigtkwjrcf/DMTest-Prefix.pch -MMD -MT dependencies -MF /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dist/build/DMTest.build/Release-iphoneos/DMTest.build/Objects-normal/armv7/com_codename1_dmtest_DMTest.d --serialize-diagnostics /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dist/build/DMTest.build/Release-iphoneos/DMTest.build/Objects-normal/armv7/com_codename1_dmtest_DMTest.dia -c /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dist/DMTest-src/com_codename1_dmtest_DMTest.m -o /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dist/build/DMTest.build/Release-iphoneos/DMTest.build/Objects-normal/armv7/com_codename1_dmtest_DMTest.o
/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dis
t/DMTest-src/com_codename1_dmtest_DMTest.m:169:32: error: use of undeclared
identifier 'class_array1__java_lang_Short'; did you mean
'class_array1__java_lang_Float'?
PUSH_POINTER((JAVA_OBJECT)&class_array1__java_lang_Short);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class_array1__java_lang_Float
In file included from
/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build5217429249279833913xxx/dis
t/DMTest-src/com_codename1_dmtest_DMTest.m:1:
Original comment by st...@weblite.ca
on 24 Jan 2015 at 5:49
The same problem seems to exist with java.lang.Long.
E.g.
Class cls = Long[].class;
Original comment by st...@weblite.ca
on 24 Jan 2015 at 6:46
Thanks, I fixed that. Can you check if this resolves the primary issue?
Original comment by shai.almog
on 25 Jan 2015 at 1:03
Tested. DataMapper compiles ok now.
Original comment by steve.ha...@codenameone.com
on 25 Jan 2015 at 3:05
Original issue reported on code.google.com by
Marcel.G...@gmail.com
on 8 Jan 2015 at 8:19Attachments: