Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31571 > unrolled thread
| Started by | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| First post | 2015-04-14 14:13 -0400 |
| Last post | 2015-04-14 14:13 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.java.programmer
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: What is this? (Java syntax) Jeff Higgins <jeff@invalid.invalid> - 2015-04-14 14:13 -0400
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2015-04-14 14:13 -0400 |
| Subject | Re: What is this? (Java syntax) |
| Message-ID | <mgjlc6$d3e$1@dont-email.me> |
On 04/14/2015 12:43 PM, Stefan Ram wrote:
> I found this on a web page:
>
> private enum WinRegistryMethod {
> OpenKey("WindowsRegOpenKey", int.class, byte[].class, int.class) {
> @Override
> protected void verifyReturnValue(Object retValue)
> ...
>
> What is the part beginning at »OpenKey«?
>
> I would understand this if there was a »new« in front of
> »OpenKey«. In this case, it would be an instance creation
> expression (anonymous inner class). But there is no »new«.
>
> According to the web page, the above code is Java code and it
> seems to have been used successfully. Do I miss some part of
> the Java syntax?
>
> Or maybe, the »new« was in the source code of the poster and
> got lost for some technical reason?
>
Someone suggests running reg might be a more robust solution.
<https://technet.microsoft.com/en-us/library/cc732643.aspx>
Back to top | Article view | comp.lang.java.programmer
csiph-web