This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243701 - Cannot set source level to 1.7 in Android project
Summary: Cannot set source level to 1.7 in Android project
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-09 15:47 UTC by _ rkubacki
Modified: 2014-07-30 02:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2014-04-09 15:47:07 UTC
https://bitbucket.org/nbandroid/nbandroid/issue/26/use-source-17-or-higher

When I set java.source=1.7 in my ant.properties IDE refuses to accept this and prints following into log:

Even though the source level of /home/radim/src/bitbucket.org/campfire-client/FiresideTalk/src:/home/radim/src/bitbucket.org/campfire-client/FiresideTalk/gen is set to: 1.7, java.lang.AutoCloseable cannot be found on the bootclasspath: /home/radim/android/android-sdk-linux/platforms/android-14/android.jar:/home/radim/android/android-sdk-linux/tools/support/annotations.jar
Changing source level to 1.6

A serious usability problem for all Android projects.
Comment 1 Tomas Zezula 2014-07-17 12:27:27 UTC
OK, I will keep the source level 1.7 but I will still log the problem like:

Even though the source level of /home/radim/src/bitbucket.org/campfire-client/FiresideTalk/src:/home/radim/src/bitbucket.org/campfire-client/FiresideTalk/gen is set to: 1.7, java.lang.AutoCloseable cannot be found on the bootclasspath: /home/radim/android/android-sdk-linux/platforms/android-14/android.jar:/home/radim/android/android-sdk-linux/tools/support/annotations.jar
Try with resources is unsupported.
Comment 2 _ rkubacki 2014-07-17 12:36:27 UTC
sure. sounds good to me.
Comment 3 Tomas Zezula 2014-07-17 12:49:33 UTC
Fixed jet-main 37421ebab6c2
Comment 4 Quality Engineering 2014-07-30 02:34:26 UTC
Integrated into 'main-silver', will be available in build *201407300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/37421ebab6c2
User: Tomas Zezula <tzezula@netbeans.org>
Log: #243701:Cannot set source level to 1.7 in Android project