Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2088 > unrolled thread
| Started by | mathar@mathar.mpia-hd.mpg.de (mathar) |
|---|---|
| First post | 2012-09-10 10:15 +0000 |
| Last post | 2012-09-11 09:04 -0700 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.java.help
java.lang.Float.MAX_EXPONENT cannot be resolved mathar@mathar.mpia-hd.mpg.de (mathar) - 2012-09-10 10:15 +0000
Re: java.lang.Float.MAX_EXPONENT cannot be resolved "John B. Matthews" <nospam@nospam.invalid> - 2012-09-10 07:58 -0400
Re: java.lang.Float.MAX_EXPONENT cannot be resolved Lew <lewbloch@gmail.com> - 2012-09-10 11:00 -0700
Re: java.lang.Float.MAX_EXPONENT cannot be resolved Roedy Green <see_website@mindprod.com.invalid> - 2012-09-11 09:04 -0700
| From | mathar@mathar.mpia-hd.mpg.de (mathar) |
|---|---|
| Date | 2012-09-10 10:15 +0000 |
| Subject | java.lang.Float.MAX_EXPONENT cannot be resolved |
| Message-ID | <k2kekf$krj$1@speranza.aioe.org> |
Under openSuse, the following program says that
int indx8 = java.lang.Float.MAX_EXPONENT ;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1 problem (1 error)
after javac t.java where t.java contains
package de.viper_ag.util ;
// import java.lang.Float ;
public class t {
private void init()
{
// int indx8 = Float.MAX_EXPONENT ;
// int indx8 = MAX_EXPONENT ;
int indx8 = java.lang.Float.MAX_EXPONENT ;
// indx8 = java.lang.Math.getExponent(java.lang.Float.MAX_VALUE) ;
}
}
java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.3) (suse-9.1-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
This type of error does not occur with Fedora-9 or Fedora-14 distributions.
Any workaround for this?
--
http://www.mpia.de/~mathar
[toc] | [next] | [standalone]
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Date | 2012-09-10 07:58 -0400 |
| Message-ID | <nospam-BCADBC.07581410092012@news.aioe.org> |
| In reply to | #2088 |
In article <k2kekf$krj$1@speranza.aioe.org>,
mathar@mathar.mpia-hd.mpg.de (mathar) wrote:
> Under openSuse, the following program says that
>
> int indx8 = java.lang.Float.MAX_EXPONENT ;
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 1 problem (1 error)
>
> after javac t.java where t.java contains
>
> package de.viper_ag.util ;
>
> // import java.lang.Float ;
>
> public class t {
>
> private void init()
> {
> // int indx8 = Float.MAX_EXPONENT ;
> // int indx8 = MAX_EXPONENT ;
> int indx8 = java.lang.Float.MAX_EXPONENT ;
> // indx8 =
> java.lang.Math.getExponent(java.lang.Float.MAX_VALUE) ;
> }
> }
>
> java -version
> java version "1.6.0_24"
> OpenJDK Runtime Environment (IcedTea6 1.11.3) (suse-9.1-x86_64)
> OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
>
> This type of error does not occur with Fedora-9 or Fedora-14
> distributions. Any workaround for this?
You might look for and delete any remnant t.class left over from a
previous, failed compilation.
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-09-10 11:00 -0700 |
| Message-ID | <d3e7fd41-77a5-4d27-8961-3a99f3f478da@googlegroups.com> |
| In reply to | #2088 |
mathar wrote:
> Under openSuse, the following program says that
>
> int indx8 = java.lang.Float.MAX_EXPONENT ;
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 1 problem (1 error)
>
> after javac t.java where t.java contains
>
> package de.viper_ag.util ;
Because this type is in a package, one expects to see that package
reflected in the command line.
> // import java.lang.Float ;
It's never necessary to import 'java.lang' types.
> public class t {
>
> private void init()
> {
> // int indx8 = Float.MAX_EXPONENT ;
Yes, this should have worked. Strange.
> // int indx8 = MAX_EXPONENT ;
>
> int indx8 = java.lang.Float.MAX_EXPONENT ;
Same difference.
> // indx8 = java.lang.Math.getExponent(java.lang.Float.MAX_VALUE) ;
> }
> }
>
> java -version
What about "javac -version"?
Grasping at straws here.
> java version "1.6.0_24"
> OpenJDK Runtime Environment (IcedTea6 1.11.3) (suse-9.1-x86_64)
> OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
>
> This type of error does not occur with Fedora-9 or Fedora-14 distributions.
> Any workaround for this?
No. It's an "impossible" error. Something is fubared in your Java setup,
if John's suggestion doesn't work.
--
Lew
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-09-11 09:04 -0700 |
| Message-ID | <77ou4854lp8od9bp2mjbjuji5qhe2hbbd0@4ax.com> |
| In reply to | #2088 |
On Mon, 10 Sep 2012 10:15:43 +0000 (UTC), mathar@mathar.mpia-hd.mpg.de (mathar) wrote, quoted or indirectly quoted someone who said : > >This type of error does not occur with Fedora-9 or Fedora-14 distributions. >Any workaround for this? try uninstall/install your JDK. Do you have anything in your SET environment obsolete? -- Roedy Green Canadian Mind Products http://mindprod.com A new scientific truth does not triumph by convincing its opponents and making them see the light, but rather because its opponents eventually die, and a new generation grows up that is familiar with it. ~ Max Planck 1858-04-23 1947-10-04
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.help
csiph-web