Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing system property in a rt.jar specific way #80

Open
glassfishrobot opened this issue Sep 23, 2008 · 5 comments
Open

Accessing system property in a rt.jar specific way #80

glassfishrobot opened this issue Sep 23, 2008 · 5 comments

Comments

@glassfishrobot
Copy link

Watch out in line 99 of com.sun.enterprise.jxtamgmt.NiceLogFormatter:

@SuppressWarnings("unchecked")
private static final String LINE_SEPARATOR =
(String) java.security.AccessController.doPrivileged(
new sun.security.action.GetPropertyAction("line.separator"));

Why not just using:

  • System.getProperty("line.separator")

instead?

The code above is shown as error in eclipse. Probably it just does not like,
that we use code directly on the rt.jar and not from the public API.

Environment

Operating System: All
Platform: All

Affected Versions

[current]

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by okrische

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@jfialli said:
Does not impact the running system, only compile time.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
shreedhar_ganapathy said:
Transferring to Joe for eval and closure.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA SHOAL-80

@glassfishrobot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant