Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4515

remove use of proprietary API - ARRAYLENGTH

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12.1
    • Component/s: None
    • Labels:
      None

      Description

      The code has a test case that uses a proprietary API field - ARRAYLENGTH..

      ...
       [nb-javac] /home/travis/build/apache/netbeans/java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java:21: warning: ARRAYLENGTH is internal proprietary API and may be removed in a future release
      
       [nb-javac] import com.sun.org.apache.bcel.internal.generic.ARRAYLENGTH;
      
       [nb-javac]                                                ^
      
       [nb-javac] /home/travis/build/apache/netbeans/java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java:21: warning: ARRAYLENGTH is internal proprietary API and may be removed in a future release
      
       [nb-javac] import com.sun.org.apache.bcel.internal.generic.ARRAYLENGTH;
      
       [nb-javac]                                                ^
      
       [nb-javac] /home/travis/build/apache/netbeans/java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java:21: warning: ARRAYLENGTH is internal proprietary API and may be removed in a future release
      
       [nb-javac] import com.sun.org.apache.bcel.internal.generic.ARRAYLENGTH;
      
       [nb-javac]                                                ^
      ...
      

      Remove the import of this class as it's not used and causes spurious warnings..

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brad.walker Brad Walker
                Reporter:
                brad.walker Brad Walker
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m