lkishalmi opened a new pull request, #5137:
URL: https://github.com/apache/netbeans/pull/5137

   Today NetBeans greeted me with the following Exception:
   
   ```
   java.lang.ArrayIndexOutOfBoundsException: Index 6 out of bounds for length 0
        at 
org.netbeans.lib.nbjavac.services.NBClassReader.readClassFile(NBClassReader.java:91)
        at com.sun.tools.javac.code.ClassFinder.fillIn(ClassFinder.java:374)
        at com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:303)
        at 
org.netbeans.lib.nbjavac.services.NBClassFinder.lambda$getCompleter$1(NBClassFinder.java:95)
        at com.sun.tools.javac.code.Symbol.complete(Symbol.java:682)
        at 
com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1410)
        at com.sun.tools.javac.code.ClassFinder.loadClass(ClassFinder.java:447)
   ...
   ```
   
   This one is a trivial fix, not to try to get the class version if the class 
file is actually empty. Could happen in some cases (e.g. a laptop lose power 
while sleeping for too long.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to