Project

General

Profile

Bug #1536

Objective-C + light generics = bug

Added by Kirill F about 3 years ago. Updated about 3 years ago.

Status:
Open
Priority:
Normal
Category:
libobjc2
Target version:
Start date:
09/29/2016
Due date:
% Done:

0%

Estimated time:
CPU Architecture:
arm, arm64, mips, mips64, x86, x86_64
Host OS:
OS X
Toolchain:
Android version:
6.0 (android-23)
CrystaX Version:

Description

when I try to compile my objective-c sources on Android Studio I get next error:

jni/Core/Logger.h:17:3: error: type arguments cannot be applied to non-parameterized class 'NSArray'
-(NSArray<NSString *> *)logFilesPaths;
  ^      ~~~~~~~~~~~~

...

ndkBuild FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ndkBuild'.

I use on my ObjC code lightweight generics, such as NSSArray<NSString *> * a = [NSArray array];

History

#1

Updated by Kirill F about 3 years ago

Kirill F wrote:

when I try to compile my objective-c sources on Android Studio I get next error:

jni/Core/Logger.h:17:3: error: type arguments cannot be applied to non-parameterized class 'NSArray'
-(NSArray *)logFilesPaths;
^ ~~~~~~~~~~~~

...

ndkBuild FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':ndkBuild'.

I use on my ObjC code lightweight generics, such as 'NSSArray * a = [NSArray array];'

hm, redmine is not show quotation marks
original text:
jni/Core/HWLogger.h:17:3: error: type arguments cannot be applied to non-parameterized class 'NSArray'
-(NSArray<NSString *> *)logFilesPaths;
^ ~~~~~~~~~~~~

I use on my ObjC code lightweight generics, such as 'NSSArray<NSString *> * a = [NSArray array];'

#2

Updated by Dmitry Moskalchuk about 3 years ago

  • Description updated (diff)
#3

Updated by Dmitry Moskalchuk about 3 years ago

  • Description updated (diff)

Also available in: Atom PDF