jenkinsci / jenkinsci/support-core-plugin

[JENKINS-32110] networkInterface.md not correctly generated with Java 6

Open
#734 0 comments 0 reactions 0 assignees View on GitHub
component:support-core-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
19
Forks
77
Avg merge
17h 53m
Merged PRs (30d)
3

Description

In the file networkInterface.md we have

N/A: No connection to node, or no cache.

Source of the issue:

support-core-plugin/src/main/java/com/cloudbees/jenkins/support/impl/NetworkInterfaces.java:[122,56]

getIndex() is not public in java.net.NetworkInterface; cannot be accessed from outside package

java.net.NetworkInterface#getIndex() is Java 7+

Several issues :


If we remove this line the file is correctly generated

---
Originally reported by aheritier, imported from: networkInterface.md not correctly generated with Java 6


  • assignee: schristou
  • status: Open
  • priority: Minor
  • component(s): support-core-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251212-090250

Raw content of original issue

In the file networkInterface.md we have


N/A: No connection to node, or no cache.


Source of the issue:

support-core-plugin/src/main/java/com/cloudbees/jenkins/support/impl/NetworkInterfaces.java:[122,56]

getIndex() is not public in java.net.NetworkInterface; cannot be accessed from outside package

java.net.NetworkInterface#getIndex() is Java 7+

Several issues :


If we remove this line the file is correctly generated

Contributor guide

Open the contributing guide

Research direction

Start in support-core-plugin/src/main/java/com/cloudbees/jenkins/support/impl/NetworkInterfaces.java at line 122 and inspect the use of NetworkInterface#getIndex(), which is unavailable in Java 6. Reproduce networkInterface.md generation with Java 6 and confirm the output no longer falls back to “N/A: No connection to node, or no cache.” Done means the file is generated correctly on Java 6.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.