Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
asm
asm
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • asm
  • asmasm
  • Issues
  • #317769

Closed
Open
Opened Aug 16, 2016 by adann@adann

ClassReader throws ArrayIndexOutOfBoundsException when reading specific modul-info.class

I'm using asm-debug-all-6.0_ALPHA.jar for reading modules of the upcoming JDK9.
Therefore, I'm reading  module-info classes within my program.
However, on some module-info.class files the ClassReader throws an
ArrayIndexOutOfBoundsException in Method readModule when visiting the exports
of a module-info.class file.

In particular, I've experienced this Exception when reading the
module-info.class of the following modules:
 - java.compiler
 - java.corba
 - java.desktop
 - java.instrument
 - java.management
 - java.base
 - java.naming
 - java.rmi
 - java.security.jgss
 - java.security.sasl
 - java.sql
 - java.xml

For the following modules, I get NO exception
 - java.logging
 - java.activation
 - java.annotations.common
 - java.compact1 
 - java.compact2 
 - java.compact3
 - java.httpclient
 - java.prefs
 - java.scripting
 - java.se 
 - java.se.ee


I've attached a test-case  to reproduce the exception when reading
java.base/module-info.class
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: asm/asm#317769